Skip to content

Commit 22f6a72

Browse files
committed
init
0 parents  commit 22f6a72

File tree

9 files changed

+891
-0
lines changed

9 files changed

+891
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.env
2+
node_modules

README.md

+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Global Risk Simulator
2+
3+
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
33+

bun.lockb

26.6 KB
Binary file not shown.

package.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"dependencies": {
3+
"dotenv": "^16.4.5",
4+
"grammy": "^1.32.0",
5+
"openai": "^4.78.1",
6+
"winston": "^3.17.0",
7+
"yargs": "^17.7.2"
8+
},
9+
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
10+
}

0 commit comments

Comments
 (0)