.env.examplefile and rename it to
.env(if you can't do this, then you must set the variables directly, search on internet how to do it in your platform, e.g: "how to set env vars in linux" or "how to set env vars in heroku"), then create a
distfolder and move the
.envfile there, and open it with a text editor. Below I will explain what does each necessary variable.
DISCORD_CLIENT_TOKENPaste here your bot's token, and remember to keep it secret!
DISCORD_CLIENT_IDPaste here your bot's id and add an
*at the end.
DB_URIIf you installed mongodb, this varaible should be set to
DISCORD_PREFIXfeel free to change this value to your favorite bot prefix, but be careful to don't use the same as other bots
BOT_OWNERSRight click your username in the discord client and press "Copy ID" and paste it here and add an
*at the end, you can add as many users as you want separated by a comma (
,). Any user added here will have always full access to the bot's commands without any restriction.
UPDATE_COUNTER_INTERVAL(Seconds) This value will change the frequency of some counter updates, you should set this at least to
FOSS_MODESet this to
true, the bot wont kick itself when it join in a no premium server
PREMIUM_BOTSet this to
true, to enable all the premium counters
PORTSet this to
8080, or any available port, don't set this if you are using a service like Heroku
mc!with your custom prefix)
index.jshas execution permissions for you (and try it by running the bot directly in the terminal with
res/member-counter-bot.servicefile, change the path of
WorkingDirectoryto the real one and change the
Groupvalues to yours.