This repo has been archived, please check the latest one.
This repo is for Soil Project. Click here to know more about this project and check our Dework page to know how to make a contribution and contact us.
This bot is run in Discord, so first, we need to obtain a Discord Bot Secret Key. Remember to KEEP IT SAFE! Anyone with this key can control your bot and Discord server.
Enter this webpage and click New Application
.
Click Bot
in the side bar and Add Bot
.
Click Reset Token
to get your Bot Secrete Key. Remember to KEEP IT SAFE!
Scroll down to disable PUBLIC BOT
, enable the following three INTENT
.
Finally, let's define the bot permission and invite the bot to your server! (Currently, we have not decided which permissions are needed in this project. Just for convenience, here I choose to grant Admin to our Bot). Scroll down, and copy the link to your explorer, choose your test Discord Server and you will see your cute bot come in to its sweet home!
Clone this repo and run the command in its root directory.
cd soil-test-bot
npm i
Next, edit the configuration file, .env.template
. Fill your secret token in TOKEN
and change GUILDID
filed to your own Discord Server ID (Click here to get how to find Discord Server ID). Then rename it with .env
. Otherwise, you will get an error. Now everything is done, run it!
npm run index.js
Expected outputs:
[2022 07 01 05:37:44] INFO: Bot is online
[2022 07 01 05:37:47] INFO: Commands are set locally