- The new slash commands.
/serverinfoInformation about the server./automsgmentionAutomated message with mention./codeHow to use code on discord./jsfiddleAsk to start a jsfiddle./kickKick a member./banBan a member./warningWarn a member and store it in DB.
- Auto roles.
- Join and leave notification.
- Notification when someone starts streaming on discord.
- GitHub notifications. (Releases, push, pull and more depending on your gh webhook settings.)
- Ticket channel system.
- Installed node.js
- Installed git (if you choose to use git clone)
- MongoDB Atlas (if you want to store warnings)
| CMD | git clone https://github.com/codump/discord.js-v14-basic-bot-functions && cd discord.js-v14-basic-bot-functions && npm install |
|---|---|
| PowerShell | git clone https://github.com/codump/discord.js-v14-basic-bot-functions ; cd discord.js-v14-basic-bot-functions ; npm install |
| OR | Download the latest version and unarchive. And then run npm install |
Fill in the config.json with the correct values.
If you already used this repo and want to update to the warning command you need to install mongoose:
npm install mongoose@latest
First time use:
node deploy-commands.json first time use. And every time you add a command.node insert-roles.json first time use. And when you want to add new roles.node insert-ticket.json first time use. Or when you accidentally deleted the ticket post.
Scripts:
node index.jsstart up the bot.- Change
commandIdin the script, then runnode delete-command.jsto delete.
- guildMemberAdd.js - Welcome message needs server members intent.
- guildMemberRemove.js - Bye message needs presence intent.
- messageReactionAdd.js - Pick a role needs server members & message content intent.
- messageCreate.js - Edit webhook needs message content intent.
Live demo of the bot: https://codump.github.io/go/discord/
Looking for free bot hosting? https://codump.github.io/go/bot-hosting/