SafeMoon - Discord Bot
Requirements
Installation Steps (if applicable)
Running the bot on your machine
- Clone the SafeMoon Discord-Bot repository.
- Run
npm install
- Configure your
config.json
file. - Run
npm run start
- Woo. Your bot is now running!
Running the bot via Docker
- Clone the SafeMoon Discord-Bot repository.
- Copy the
.env.example
file to.env
and update the values.- Set
DISCORD_RUNNER
to eitherlocal
orshard
, depending on your criteria.
- Set
- Copy the
config.example.json
file in thesrc/
directory toconfig.json
and update it to your liking. - Run
docker-compose up -d
in the root directory. - Woo. Your bot is now running!
How to add the bot to your discord server
- Create your bot and go to the oauth page and grab your bot client id.
- Go to: https://discord.com/oauth2/authorize?client_id=YOUR_BOT_CLIENT_ID_HERE&scope=bot
- Authorize it and you're good to go.
How to configure your config.json file
Copy the config.example.json
file inside of the src/
directory, and then update it to your liking.
{
"token": "YOUR_BOT_TOKEN",
"prefix": "default command prefix",
"mongoPath": "mongodb://localhost:27017/discordbot",
"contractAddress": "0x8076C74C5e3F5852037F31Ff0093Eeb8c8ADd8D3",
"bscScanApiKey": "YOUR_API_KEY_GOES_HERE"
}