Skip to content

This is a typescript rewrite of observerbot for comparatorcraftsmp

License

Notifications You must be signed in to change notification settings

ComparatorCraftSMP/observer-bot-ts

 
 

Repository files navigation

Observer Bot TS

DiscordJS Version Discord GitHub commit activity GitHub issues GitHub top language GitHub last commit JS


Logo

Observer Bot

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


Installation (Windows & Linux)

You need to install NodeJS installed on the server/PC you want to host the bot on. And install ServerTAP on your minecraft server.
  1. git clone https://github.com/ComparatorCraftSMP/observer-bot.git
  2. cd observer-bot
  3. npm i
  4. Duplicate .env.example and config.json.example and remove the .example file extension from their names
  5. enter image description here just like this you should have a .env and a config.json
  6. Open .env and in TOKEN= put your Discord bot token
  7. In API= put your api key from your ServerTAP config.yml file
  8. In Server put your servers IP and port value from ServerTAP config.yml file
  9. Your .env file should look like this Don't worry these values are made up
  10. 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
  11. Then your bot should be ready, do npm run reg-commands in your terminal to register the slash commands.
  12. Do Control C on your keyboard to cancel that once it says Slash commands are registered successfully
  13. Then do npm run dev and this is the command you will need to do to start the bot

About

This is a typescript rewrite of observerbot for comparatorcraftsmp

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.3%
  • JavaScript 1.7%