A multi-functional Discord bot made specifically for Tetriser's Realm Discord server.
- Node v16.17.0+
- Knowledge of JavaScript and by extension, Discord.js
- Install Node to your system. Make sure NPM is also installed.
- Run
npm install
inside the bot's root folder through your system's terminal to install the required modules to run the bot. - Once that's done, make sure your
config.json
is filled. See the next section below. - Then, run
node deploy-commands.js
. This will distribute the commands inside thecommands
folder as slash commands in Discord. - Finally, run
node index.js
to start the bot up. - You're done! Now what's left to do is to modify the bot's commands to your liking and even create some new ones. In case you need a bit of help, the
commandtemplate.js
file can be your starting point.
In this repository, you'll notice that the config.json
file has blank entries, you will need to fill them all.
token
- The token for the bot to connect to Discord. You can get your token by creating an application in your Discord Developer Portal, then you can copy the token from your app's Bot page.clientID
- Required for runningdeploy-commands.js
. This is your bot's client ID, which you can obtain from the Developer Portal through the OAuth2 page.guildID
- Also required for runningdeploy-commands.js
. This is your server's ID.welcomeChannelID
- The channel ID for the bot to send user arrivals and departure messages. Said channel requires the bot to have the Send Messages permission.
It's easy, my friend. 😁 Say, you're using your desktop, right-click your chosen channel and the server icon and select Copy ID to copy the ID of the channel and server, respectively.