#Tokebot V1 Tokebot for fore.st, made with ChozoBot. ## Requirements - nodejs (12+, last tested on 12.18.2) - postgresql (tested on 12.3, optional - only if using database. will write more setup info eventually. create a schema with the name of the room you're using the bot in and grant all perms to the user who owns the database) - root/admin access for setting up psql ## Setup I'll get around to writing this readme properly, but: Copy the config.example.js file and name it config.js. If you're providing a room parameter to the bot (see below), name it config-roomname.js instead. Read through the configuration file and carefully make sure everything is set just right. Install the node modules: `npm install` ## Usage Run the bot: `node .` You can provide a room parameter: `node . -r room` if you'd like to have different configurations for different rooms. You may also use the scripts provided to allow the bot to restart if it is killed. Replace `node` with `./start.sh`, for example. However, the batch (Windows) script was not tested since it was last edited. It is recommended to have the bot at rank 3 (Admin) so it has full functionality. When updating the bot, you must make sure to add any new configuration lines every time. To create custom commands, see customcommands.example.js for writing them, and the bottom of the config.js file for more info on including them.