The bot for the Universal-Team Discord server
- Install Node.js
- In the Universal-Bot directory, run
npm install - Create a file called
.envwithTOKEN="put your bot token here"- You can make a bot at the Discord Developer Portal
- Click
New Applicationin the top right - Click
Botin the sidebar - Click
Add Bot - Click
Copyto 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 thedevelopersarray - Run
node univ-bot.js
- Install
pm2withnpm 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:
TOKENDiscord token, needed for the bot to work at allDEEPL_TOKENDeepL free token, for ?translateCURRENCY_TOKENFree Currency Converter API token, for ?currencyWEATHER_TOKENOpenWeatherMap 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:
qrencodefor ?qr and ?binaryQRzbarimgfor ?qrDecodeffmpegfor ?twilightBGMgcc/g++for ?c and ?cpppython/python3for ?py and ?py3bash/shfor ?bash and ?shtscfor ?typescriptpm2for ?reboot (bot must be run from pm2)cowsay/cowthinkfor ?cowsay and ?cowthink