Respository for a bot that counts how many times the word has been said and reacts to every message with the letters in it.
Go to file
ultimateplayer1999 d21795e0d5 Updated readme.md 2023-04-26 08:06:48 +00:00
models Added source 2023-04-26 07:26:55 +00:00
.gitignore Added source 2023-04-26 07:26:55 +00:00
client.js Added source 2023-04-26 07:26:55 +00:00
dbinit.js Added dbinit 2023-04-26 08:02:43 +00:00
example.env Added source 2023-04-26 07:26:55 +00:00
package-lock.json Added source 2023-04-26 07:26:55 +00:00
package.json Added source 2023-04-26 07:26:55 +00:00
readme.md Updated readme.md 2023-04-26 08:06:48 +00:00

readme.md

A bot that counts that counts how many the letters where used in messages. It also reacts to the messages that have the letters in it.


The configuration is based on a .env file. See the example.env file for the configuration options. It is currently only based on the cloud version of mongodb.

This bot is based on shrimpBot. Converted the DB from postgres to mongodb.

Use the following command to initialize the database. node dbinit.js It will create the needed collection and document and return it in the console output.

Use the output of _id for the search and update operation. The following part is needed for this _id: new ObjectId(=="6448db015eed6ed191ef61a1"==),