mirror of
https://github.com/the-programmers-hangout/swiftspiracy-bot.git
synced 2026-09-09 16:06:26 +02:00
add logic to help resume bot from given indices
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user