- To use this bot, Node.js 12.0.0 or newer must be installed.
-
Download the
zipfile. -
Configure the Bot:
- Run
npm i - You will need to create a bot application in the developers space
- Replace the placeholders in
config.jsonwith your preffered settings.
- Run
-
Invite the Bot to your Server:
-
In your bot's application page, navigate to OAUTH2
-
In the "scopes" section, select
bot -
In the "bot permission" section, select:
ADMINISTRATOR
This will account for permissions needed on all three features.
-
Copy and paste the generated invite link!
-
-
Get the Bot Online
- Run
node index.js - The bot is now operational ! 🎉
- Run
This bot starts with an empty alts.json file that will be populated with all alts submitted via the +addalt command. Thanks to the nature of fs, a built in node.js module, new alt data is physically written to the JSON file. This means that your data will be preserved, even if you restart your bot.
All users can use the +alt command (once every thirty minutes), which will send them an embedded link to your page. After a minute and thirty second has passed, one alt will be removed from the JSON list and sent to the user. This will also be logged to the channel specified in config.json
