Skip to content

Commit

Permalink
Merge pull request #94 from berkingurcan/add-admin-channel-buttons
Browse files Browse the repository at this point in the history
Add admin channel buttons f
  • Loading branch information
berkingurcan authored Feb 6, 2025
2 parents aecdb48 + b92e4a4 commit 7160396
Show file tree
Hide file tree
Showing 24 changed files with 1,433 additions and 291 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
surveyToText.js
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@ Join the Discord server for discussing and developing this tool [here](https://d

# Discord forum channel id for posting channels.
POST_CHANNEL_ID=XXXXX
ADMIN_CHANNEL_ID=XXXXX

# Server PORT
GSS_SERVER_PORT=3000
GSS_BOT_ADMIN_CHANNEL_ID=XXXXX
```

2. Run `npm install`
Expand Down Expand Up @@ -93,7 +95,9 @@ Resets the Redis database.
npm run reset
```

## Commands
## Commands *(Deprecated)*

It still can be run with ```npm run commandBot```but no we have buttons UI for smooth user experience.

### /gptsurvey create

Expand Down Expand Up @@ -197,10 +201,6 @@ The `--env-file` flag takes a filename as an argument and expects each line to b
docker-compose up --build
```

## Example Survey

TODO

# Environment Setup

## Step 1: Discord Developer Portal
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ services:
command: bot
environment:
DISCORD_TOKEN: ""
OPENAI_API_KEY: ""
REDIS_HOST: redis
REDIS_PORT: 6379
REDIS_PASSWORD: ""
Expand All @@ -13,6 +14,7 @@ services:
POST_CHANNEL_ID: ""
GSS_LOG_LEVEL: ""
SUMMARIZE_FREQUENCY_SECONDS: ""
GSS_BOT_ADMIN_CHANNEL_ID: ""
summarizer:
image: gpt-survey-summarizer
build: .
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "discord-bot",
"type": "module",
"version": "0.4.4",
"version": "0.4.6",
"description": "",
"main": "index.js",
"scripts": {
"test": "mocha",
"commandbot": "npx tsx src/commandBot.ts",
"bot": "npx tsx src/bot.ts",
"server": "npx tsx src/server.ts",
"dev": "nodemon --exec npx tsx src/bot.ts",
Expand Down
Loading

0 comments on commit 7160396

Please sign in to comment.