The bot for the Universal-Team Discord server
- Install Node.js
- In the Universal-Bot directory, run
npm install
- Create a file called
.env
withTOKEN="put your bot token here"
- You can make a bot at the Discord Developer Portal
- Click
New Application
in the top right - Click
Bot
in the sidebar - Click
Add Bot
- Click
Copy
to copy the token
- Click
- You can make a bot at the Discord Developer Portal
- If desired, make changes to
database.json
, such as adding your ID to thedevelopers
array - Run
node univ-bot.js
- Install
pm2
withnpm install -g pm2
- Start Universal-Bot with
pm2 start univ-bot.js
You must have a file called .env
with the API tokens Universal-Bot uses:
TOKEN
Discord token, needed for the bot to work at allDEEPL_TOKEN
DeepL free token, for ?translateCURRENCY_TOKEN
Free Currency Converter API token, for ?currencyWEATHER_TOKEN
OpenWeatherMap Free API token, for ?weather
You will also need to install the following programs (and have them in your PATH) for the commands they're used in to work:
qrencode
for ?qr and ?binaryQRzbarimg
for ?qrDecodeffmpeg
for ?twilightBGMgcc
/g++
for ?c and ?cpppython
/python3
for ?py and ?py3bash
/sh
for ?bash and ?shtsc
for ?typescriptpm2
for ?reboot (bot must be run from pm2)cowsay
/cowthink
for ?cowsay and ?cowthink