This is a RainbowBOT's source files.
RainbowBOT is a Discord bot with rich functionality written on TypeScript using Synergy3 and discord.js libs.
Basically, main discord-related stuff is implemented on Synergy3 side and this bot is a Synergy3 Modules Collection.
So, now bot is completely opensource. Feel free to leave issues/pull requests, fork and etc.
- Clone this repo somewhere
git clone https://github.com/Hatry1337/RainbowBOTJS
- Move into cloned directory
cd RainbowBOTJS
- Create
.env
file and fill it with your credentials
TOKEN="Your Discord Token"
DBURI="Database URI like postgres://user:password@host:5432/database"
NODE_ENV="'production' or 'development', production pushes commands globally by default"
MASTER_GUILD="Your discord guild id to push commands to if you use development mode"
TOPGG_TOKEN="Your top.gg token, can be leaved blank"
OSU_API_KEY="Your osu! api key, used for module 'OsuInfo', also can be leaved blank"
- Install required dependencies
npm i
- Build typescript project
tsc
- Launch the bot!
node ./dist/bot.js