This is a Discord bot that adds important utilities to our minecraft SMP through discord. It needs ServerTAP running and setup on the minecraft server
License
View Progress
You need to install NodeJS installed on the server/PC you want to host the bot on. And install ServerTAP on your minecraft server.
git clone https://github.com/ComparatorCraftSMP/observer-bot.gitcd observer-botnpm i- Duplicate
.env.exampleandconfig.json.exampleand remove the.examplefile extension from their names just like this you should have a
.envand aconfig.json- Open
.envand inTOKEN=put your Discord bot token - In
API=put your api key from your ServerTAP config.yml file - In
Serverput your servers IP and port value from ServerTAP config.yml file - Your .env file should look like this
- In
config.jsonenter in those fields, clientId is the Discord bots id (this is needed), guildId isn't needed and bot owner isn't needed - Then your bot should be ready, do
npm run reg-commandsin your terminal to register the slash commands. - Do
Control Con your keyboard to cancel that once it saysSlash commands are registered successfully - Then do
npm run devand this is the command you will need to do to start the bot

