/pappu

A discord bot to track status updates.

Primary LanguageJavaScriptMIT LicenseMIT

Pappu

This a discord bot which can be used to monitor status updates.

Setup

Requirements : Nodejs, gcc
Create a .env file, add the following lines in it and change the password to the one which you put:-

client_token='<API Token>'
server_id='999999999999999999'
status_updates_channels='999999999999999999,9999999999999999998'
admin_commands_channels='999999999999999999,9999999999999999998'
logs_channels='999999999999999999,9999999999999999998'

admin_commands_channels, logs_channels and status_updates_channels are multivauled fields which accept comma seperated values.
First navigate to the project root folder and install all the dependencies related required using the following command:-

npm install

To run the application execute the command:-

node .

Running the bot in the background

Use forever package from npm.

npx forever start index.js

Backup of data

All the bot data is stored in the pappu.db file which basically serves as on disk storage for the embedded sqlite engine. You can place it in the project root to restore the data.