Skip to content
This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
/ soil-bot Public archive

Soil Bot --- A bridge between Discord and Product

License

Notifications You must be signed in to change notification settings

Soil-labs/soil-bot

Repository files navigation

Soil Test Bot

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.

How to run it

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.

Create a Discord Application and a Bot

Enter this webpage and click New Application.

create_new_application

Click Bot in the side bar and Add Bot.

add_bot

Click Reset Token to get your Bot Secrete Key. Remember to KEEP IT SAFE!

bot_key

Scroll down to disable PUBLIC BOT, enable the following three INTENT.

bot_intents

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!

generate_url

Configure Repo

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

About

Soil Bot --- A bridge between Discord and Product

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published