All Projects â†’ peterthehan â†’ Create Discord Bot

peterthehan / Create Discord Bot

Licence: mit
Create Discord bots using a simple widget-based framework.

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Create Discord Bot

Commando
Official command framework for discord.js
Stars: ✭ 434 (+520%)
Mutual labels:  bot, discord-bot, framework, discord
Discord.js Menu
💬 Easily create Discord.js v12 embed menus with reactions and unlimited customizable pages.
Stars: ✭ 89 (+27.14%)
Mutual labels:  bot, discord-bot, framework, discord
Zira
Zira is a Discord Bot that allows you to react to an emoji on a message and manage a users roles.
Stars: ✭ 55 (-21.43%)
Mutual labels:  bot, discord-bot, discord
Discord4j
Discord4J is a fast, powerful, unopinionated, reactive library to enable quick and easy development of Discord bots for Java, Kotlin, and other JVM languages using the official Discord Bot API.
Stars: ✭ 973 (+1290%)
Mutual labels:  bot, discord-bot, discord
Discord Slash Bot
This bot is a simple Discord Slash Bot.
Stars: ✭ 64 (-8.57%)
Mutual labels:  bot, discord-bot, discord
Bottyclient
A slim Discord client with many cool features including less network traffic which supports bot tokens, but user tokens theoretically work too. Tags: Discord Bot Client Token for Bot Botting Download English
Stars: ✭ 58 (-17.14%)
Mutual labels:  bot, discord-bot, discord
Discord Bot
🤖 Our BIG help in things about moderation and many more useful stuff on our Discord server.
Stars: ✭ 30 (-57.14%)
Mutual labels:  bot, discord-bot, discord
Core
The core YAMDBF Framework
Stars: ✭ 63 (-10%)
Mutual labels:  bot, framework, discord
Clinet
Official repository for Clinet, a Discord bot intended for assistance and control within your guilds.
Stars: ✭ 28 (-60%)
Mutual labels:  bot, discord-bot, discord
Juniperbot
Fluffy Discord Bot (Music, Ranking, Reminder, Vk Community bridge,WikiFur) created using JDA
Stars: ✭ 43 (-38.57%)
Mutual labels:  bot, discord-bot, discord
Calebj Cogs
âš™ Cogs for Red-Discordbot
Stars: ✭ 42 (-40%)
Mutual labels:  bot, discord-bot, discord
Automod Bot
Fun moderation economy bot discord.js
Stars: ✭ 41 (-41.43%)
Mutual labels:  bot, discord-bot, discord
Nitro
A discord bot
Stars: ✭ 56 (-20%)
Mutual labels:  bot, discord-bot, discord
Crucian
âš¡ Discord bot with economy, gambling, music, fun, moderation features based on discord.js v12
Stars: ✭ 55 (-21.43%)
Mutual labels:  bot, discord-bot, discord
Modmail
A feature rich discord Modmail bot
Stars: ✭ 957 (+1267.14%)
Mutual labels:  bot, discord-bot, discord
Pvpcraft
PvPCraft Discord bot
Stars: ✭ 29 (-58.57%)
Mutual labels:  bot, discord-bot, discord
Clara
A general purpose Node.JS bot for Discord.
Stars: ✭ 37 (-47.14%)
Mutual labels:  bot, discord-bot, discord
Kyoko
Moved to GitLab: https://gitlab.com/KyokoBot
Stars: ✭ 50 (-28.57%)
Mutual labels:  bot, discord-bot, discord
Automuteus
Discord Bot to automute Among Us players at round transitions, in conjunction with https://github.com/denverquane/amonguscapture
Stars: ✭ 852 (+1117.14%)
Mutual labels:  bot, discord-bot, discord
Deku
Multi-purpose discord bot built with discord.js
Stars: ✭ 13 (-81.43%)
Mutual labels:  bot, discord-bot, discord

Create Discord Bot

Discord Twitter Follow

Create Discord bots using a simple widget-based framework.

npx demo

Table of contents

Getting started

Create bot

  1. Go to Discord's Developer Portal.

  2. Create a new application.

  3. Go to the bot tab and add a bot user to your application.

    Take note of the bot token on this page—you will need it in the next section.

    Keep your token and any file containing it private. If it ever leaks or you suspect it may have leaked, simply regenerate a new token to invalidate your compromised token.

  4. In the bot tab, scroll down to the Privileged Gateway Intents section and enable the toggles for both Presence Intent and Server Members Intent. More details on Gateway Intents can be found here:

Create application

npx peterthehan/create-discord-bot

Follow the instructions given by the utility. Once the bot is running, verify the setup is working by sending the .ping command on Discord. If there are issues, check Troubleshooting for tips.

You're ready to create your own Discord bot! 🎉

Documentation

Updating

Update your core bot files to the latest version in this project by running npx peterthehan/create-discord-bot and entering the same name as your existing Discord bot when asked for the application name. This will update:

Command widget

create-discord-bot includes a command widget. Follow the design of the ping command to start building your own commands.

Widget conventions

  • All widgets must live under the src/widgets/ folder.
  • All widgets must have a handlers folder.
  • A handlers folder can only contain event handler files.
  • All event handler files must be named exactly the same as the events found on the Client page.

An example file tree diagram of these requirements may look like:

src/
  widgets/
    command/
      handlers/
        ready.js
        message.js
    widget1/
      handlers/
        messageReactionAdd.js
        messageUpdate.js
        other event handlers
    widget2/
      handlers/
        typingStart.js
        userUpdate.js
        other event handlers

Widgets

The following widgets can be used by this framework by adding them into the src/widgets/ folder:

Troubleshooting

  • Remove bots that may conflict in functionality, e.g. multiple reaction role bots.
  • Use Git Bash instead of the Command Prompt (cmd.exe) if you are on Windows.
  • npm -v to check if your npm version supports npx (v5.2+).
  • node -v to check if you have the latest LTS version of Node.js (v12+).
  • npm install if running the application outputs Error: Cannot find module '...'.

Visit for more help or information!

Discord server invite

Contributing

Read the Contributing documentation to get started!

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].