Skip to content

Commit c904d02

Browse files
author
RUNGUSZONE
committed
bucket 3.0 is ready!
1 parent df61122 commit c904d02

File tree

8 files changed

+27
-12
lines changed

8 files changed

+27
-12
lines changed

README.md

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ Training will also take a while, especially if you've given it a lot of data. Fo
4646

4747
### Bucket will want to say slurs after a while. There's a filter in place which should block most if not all of them, and a well crafted system prompt will prevent some as well. We will need a better solution for "ignoring" them from OpenAI's data.
4848

49-
1. Rename `config.sample.json` to `config.json`, and get ready to enter a lot of settings:
49+
1. Rename `frontend/config.sample.json` to `config.json`, and get ready to enter a lot of settings:
5050

5151
- discordToken: your discord api key you got from the developer's portal
5252
- allowedChannelId: the channel you want the bot to look at for pings (can be a thread)
@@ -72,6 +72,8 @@ Training will also take a while, especially if you've given it a lot of data. Fo
7272

7373
- systemPrompt: your system prompt that the ai will use
7474

75+
- allowedUserTag: a discord user id for a user who can use the bot in any channel
76+
7577
> **A note on system prompts**
7678
>
7779
> While you're in `config.json`, you need to add a system prompt. This sets the guidelines and "boundaries" that the AI *mostly* follows. You can use the same system prompt that was used in `jsoncleaner.py`, but now would be the best time to mess around and see what gives you the best results.
@@ -82,18 +84,11 @@ Training will also take a while, especially if you've given it a lot of data. Fo
8284

8385
2. Open a terminal/command prompt in the `bot` folder, then run `npm install` to grab all the dependencies
8486

85-
3. Once that's done, run `node bucket2.mjs` or just `node .` to start the bot
86-
87-
Bucket will log responses, and who triggered the bot in the `/bot/logs/` folder.
87+
3. Once that's done, run `npm install`, then `npm start` to run the bot
8888

89-
## Frontend
90-
I'm working on a better frontend for Bucket. If you'd like to test it, go ahead and
91-
- copy config.json from `bot` to `frontend`
92-
- open cmd/terminal in the `frontend` folder
93-
- run `npm install`
94-
- once that's done, run `npm start`
89+
After first launch, you will just have to run `npm start` to run the bot from now on
9590

96-
Bucket's frontend is experimental, and not finished. Please let me know if there's something I should add to it.
91+
Bucket will log responses, and who triggered the bot in the `/bot/logs/` folder.
9792

9893
## Contributing
9994
Feel Free! If you want to change something just open a PR.

bot/config.sample.json renamed to frontend/config.sample.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,6 @@
1414
},
1515
"severityCategory": 2.2,
1616
"removePings": 1,
17-
"removeLinks": 0
17+
"removeLinks": 0,
18+
"allowedUserTag": 0
1819
}
File renamed without changes.
File renamed without changes.
File renamed without changes.

old/bot/config.sample.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"discordToken": "your discord bot token here",
3+
"allowedChannelId": "channel/thread id for bot",
4+
"trainEmoji": "🔥",
5+
"reactionCount": 3,
6+
"openaiapi": {
7+
"apiKey": "your openai api key here",
8+
"modelId": "your fine tuned model id",
9+
"maxTokens": 100,
10+
"temperature": 0.6,
11+
"presencePenalty": 0.6,
12+
"frequencyPenalty": 1,
13+
"systemPrompt": "your system prompt here"
14+
},
15+
"severityCategory": 2.2,
16+
"removePings": 1,
17+
"removeLinks": 0,
18+
"allowedUserTag": 0
19+
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)