A small Discord moderation bot, without a command handler
- Node.js
- A code editor (visual studio code, atom, notepad++ etc)
Go to https://discord.com/developers and make an application. After creating your application, you should have the option to create a bot user.
Make a folder for which your bot's coding will be in
Do shift + right click and select open powershell (or cmd depending on your PC)
Type into your powershell/cmd npm init
and enter information that is requested, set your entry point to bot.js
. After doing that, we should now have a file called package.json
Now, you should type npm install discord.js
, we are installing the discord.js modules
Download bot.js
and config.json
Get your bots token. Reminder, bot tokens are key information that gives complete access to your bot.
Place your bot's token between the quotation marks, you can also edit the prefix if you'd like.
Run your bot by typing node bot
into your powershell/cmd
Use this link and replace client_id_here with your actual client ID https://discordapp.com/api/oauth2/authorize?client_id=client_id_here&permissions=0&scope=bot
Enjoy the bot, updates are frequent so always return to replace your bot.js
with the newest one.
If you'd like to come to me personally, join the support server
Also a big thank you to the contributors for correcting small errors