You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Telegram bot for simulating and role-playing global risk scenarios. Players can take on different roles and interact with scenarios through actions and information sharing.
4
+
5
+
## Setup
6
+
7
+
1. Clone this repository
8
+
2. Install dependencies:
9
+
```bash
10
+
bun install
11
+
```
12
+
3. Create a `.env` file with relevant tokens:
13
+
```
14
+
BOT_TOKEN=your_key
15
+
OPENAI_API_KEY=your_key
16
+
```
17
+
18
+
### Usage
19
+
20
+
1. Start the bot
21
+
```bash
22
+
bun src/grim.ts [--scenario-file <file_name>]
23
+
```
24
+
1. Set your role with `/role <Your Name> - <Your Role>`
25
+
1. Start the scenario with `/scenario <scenario_description>`. You don't need to provide `scenario_description` if you used a `scenario_file`
26
+
1. Once the scenario is started, you can use these commands:
27
+
-`/info` - Queue an information request about the current situation
28
+
-`/feed` - Queue information to incorporate into the world state
29
+
-`/action` - Queue an action you want to take in the world
30
+
-`/process` - Process all queued actions
31
+
-`/remove` - Remove an item from the action queue
32
+
-`/rollback` - Roll back the scenario to a previous checkpoint
0 commit comments