+2 Bot

+2 Bot

Discord bot tracking users' +2 and -2 counts with discord.js and Sequelize.

The +2 Bot is a Discord bot that tracks the number of +2 and -2 ratings among users. It brings a community joke-rating format into Discord.

Platform: Discord · Stack: discord.js, Sequelize, pg, sqlite3, dotenvx, Commander, Pino

Inspiration

The idea came from a stream in which Jerma and Etalyx attempted to beat Kane and Lynch 2: Dog Days within a time limit of just under four hours.

Funny jokes added two minutes to the timer, while unfunny jokes removed two minutes. Viewers expressed their opinions by posting +2 or -2 in chat, turning reactions to jokes into part of the challenge.

Jerma and Etalyx completed the game with 45 seconds remaining.

Bot functionality

The bot adapts that format into user-based count tracking within Discord, recording the number of +2 and -2 ratings associated with users.

Dependency stack

The project declares the following libraries and supporting packages:

AreaDependencies
Discorddiscord.js
Database packagessequelize, pg, pg-hstore, sqlite3
Configuration and command-line tooling@dotenvx/dotenvx, commander
Loggingpino, pino-pretty