add logic to help resume bot from given indices

This commit is contained in:
Khinshan Khan
2025-04-01 10:24:30 -04:00
parent af937d3e6d
commit d15c9e3491
3 changed files with 28 additions and 0 deletions
+5
View File
@@ -38,6 +38,11 @@ Create a `.env` file in the root of your project with the following keys:
- `CONSPIRACY_PROBABILITY`: Probability (from 0.0 to 1.0) that a conspiracy message is sent after a praise. Eg, 0.4 =
40% chance.
Optional:
- `PRAISE_INDEX`: Index of the [praises.json](./cmd/bot/praises.json) to start from, useful when resuming bot.
- `CONSPIRACY_INDEX`: Index of the [conspiracies.json](./cmd/bot/conspiracies.json) to start from, useful when resuming
bot.
You can view the [.env-sample](./.env-sample) as an example completed template.
### Install + Run