wolfcountBot/readme.md

15 lines
1000 B
Markdown
Raw Normal View History

2023-04-26 07:20:34 +00:00
# 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.
2023-04-26 08:02:43 +00:00
This bot is based on [shrimpBot](https://github.com/numselli/shrimpBot). Converted the DB from postgres to mongodb.
Use the following command to initialize the database.
`node dbinit.js`
2023-04-26 08:06:48 +00:00
It will create the needed collection and document and return it in the console output.
2023-04-28 11:48:43 +00:00
If you want to run it yourself, use the output of _id for the search and update operation. The following part is needed for this
2023-04-26 08:10:04 +00:00
"6448db015eed6ed191ef61a1" (This is offcourse an example, yours will be different.
2023-04-28 11:48:43 +00:00
On the cloud hosted version of mongodb, this will be located in `_id: new ObjectId("6448db015eed6ed191ef61a1")` via shell output or `_id: ObjectId("6448db015eed6ed191ef61a1")` on the dashboard)