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.git
cd observer-bot
npm i
- Duplicate
.env.example
andconfig.json.example
and remove the.example
file extension from their names - just like this you should have a
.env
and aconfig.json
- Open
.env
and inTOKEN=
put your Discord bot token - In
API=
put your api key from your ServerTAP config.yml file - In
Server
put your servers IP and port value from ServerTAP config.yml file - Your .env file should look like this
- In
config.json
enter 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-commands
in your terminal to register the slash commands. - Do
Control C
on your keyboard to cancel that once it saysSlash commands are registered successfully
- Then do
npm run dev
and this is the command you will need to do to start the bot