Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.31 KB

readme.md

File metadata and controls

42 lines (32 loc) · 1.31 KB

whitelister bot

this bot is especially designed for devious.gg network, however it's highly configurable

how to setup


clone this repo, extract it anywhere, make sure you have node.js (latest), open a terminal, navigate to where you extracted the repo, type npm i then node index.js

configurations:

servers.json

contains the server configuration, follows this syntax:

[
   {
       "label": "friendly name",
       "description": "brief description",
       "value": "AMP INSTANCE NAME,AMP INSTANCE API IP,MC SERVER IP ADDRESS,MODPACK VERSION"
   },
       {
       "label": "another name",
       "description": "another brief description",
       "value": "AMP INSTANCE NAME, ANOTHER AMP INSTANCE API IP,MC SERVER IP ADDRESS,MODPACK VERSION"
   }
]

users.db

a database of users linked to their mc username and server they are on, auto-handled by the bot, don't touch this

Enviromental variables

some enviromental variables must be set for the bot to work correctly

  • DISCORD_TOKEN: discord token for the bot
  • AMP_USER: username for the amp user that the bot manages
  • AMP_PASSWORD: the password for the amp account that the bot manages
  • CLIENTID: client id of the bot
  • GUILDID: guild id where the bot will work
  • MenuChannelID: where the menu has to be posted