Alex Ott
8970195c39
Add /help and /tutorial commands and update bot activity ( #399 )
...
* add help command and update bot activity
* remove useless lines
* fix help message
* rename variable
* start tutorial command
* Update messages.py
Co-authored-by: Andreas Köpf <andreas.koepf@xamla.com >
2023-01-06 19:42:56 +01:00
Oliver Stanley
69bc799cd9
344: Create tasks for text labels ( #381 )
...
* Implement label task for initial prompts and replies
* Resolve formatting
* Include missing argument
* Modify text_labels API to match new model, update DB schema accordingly
* Send valid labels as part of label tasks
* Send correctly formatted valid_labels list
* Fix request format
* Fix request details for text-frontend reply label task
* Include message_id in tasks
* Address review comments
* Fix alembic tree
2023-01-06 18:39:04 +01:00
Psychpsyo
215289808e
Fix #336
2023-01-04 11:00:46 +01:00
Alex Ott
065e9273bc
update a few things ( #357 )
2023-01-04 08:14:05 +01:00
Alex Ott
e7515fd08e
Feat/better messages ( #318 )
...
* improve messages and UX
* move log statement
Co-authored-by: Andreas Köpf <andreas.koepf@provisio.com >
2023-01-03 13:13:44 +01:00
Alex Ott
29ffc276f3
Allow user to start work from DMs. ( #267 )
...
* merge upstream/main
* update permissions check for guild settings
* add error handler for the bot
* allow users to start work from DMs and broadcast task completion messages to all log channels
* remove print statement
2023-01-03 10:31:33 +00:00
Jack Michaud
ed115ea17c
refactor: move OasstApiClient into oasst-shared ( #287 )
...
* refactor: move api_client into oasst-shared
* refactor: move contract tests into oasst-shared
* fix: use new OasstApiClient imports in discord bot
2023-01-02 22:13:20 +01:00
Alex Ott
e15259b311
Stop users from starting more than one task at a time ( #265 )
...
* make sure a user can only do 1 task at a time
* remove todo comment
* move handle_task inside a try/finally block
2023-01-02 19:32:40 +01:00
Gareth Davidson
7000e10bc0
apply pre-commit rules
2023-01-02 00:01:45 +00:00
Jack Michaud
898113ef8d
fix: correct typing for OasstApiClient
2023-01-01 18:58:01 +01:00
Alex Ott
46892f67e7
Add an error handler to the discord bot ( #235 )
...
* add error handler for the bot
2023-01-01 12:46:38 +01:00
Alex Ott
4d76355dc8
update permissions check for guild settings
2023-01-01 10:34:47 +01:00
Alex Ott
550d695a58
merge upstream/main
2023-01-01 10:34:47 +01:00
kostiak
bd2a7e93e3
fixing issue #202
2022-12-31 17:53:04 +01:00
Alex Ott
8067dc8f78
rename TOKEN env var to BOT_TOKEN
2022-12-31 03:52:09 -08:00
Alex Ott
a7b7487611
remove example table from sql schema
2022-12-30 22:55:24 -08:00
Alex Ott
1bdd02c821
fix breaking api changes
2022-12-30 22:52:57 -08:00
Alex Ott
6c3a2eac03
rename task.py to test_user_input.py
2022-12-30 17:48:22 -08:00
Alex Ott
004a868cb4
update user input validator
2022-12-30 17:44:20 -08:00
Alex Ott
0fb7bfd27a
Add more settings and refactor other md files into README.md
2022-12-30 17:30:56 -08:00
Alex Ott
150fc67bfd
switch to using Pydantic for bot config
2022-12-30 05:48:56 -08:00
Alex Ott
6cccd74e34
switch to loguru
2022-12-30 05:28:51 -08:00
Alex Ott
708011e6a0
move EXAMPLEs.md
2022-12-30 05:14:16 -08:00
Alex Ott
84d52effee
remove address todo comments
2022-12-30 05:11:36 -08:00
Alex Ott
b81eeebe9e
switch to using pre-commit
2022-12-30 04:35:45 -08:00
Alex Ott
65c078fb9f
pre-commit changes
2022-12-30 04:12:54 -08:00
Alex Ott
98955441d1
explain text_label logic
2022-12-30 03:21:21 -08:00
Alex Ott
d71ded1364
send the task completion message in the guild's configured channel
2022-12-30 03:15:22 -08:00
Alex Ott
e4b097edff
add database schema and guild setting
2022-12-30 02:59:52 -08:00
Alex Ott
63e2120825
add completion message to task and add message labeling
2022-12-30 02:02:46 -08:00
Alex Ott
9c15258fd1
move api_client.py back to the correct position
2022-12-29 16:25:37 -08:00
Alex Ott
26c1b4eaab
merge upstream main
2022-12-29 16:24:55 -08:00
Alex Ott
a2a0e1608d
fix: parse TaskRequestType enum correctly
2022-12-29 15:45:01 -08:00
Alex Ott
bb3b0e7397
update api client to upstream version
2022-12-29 15:00:20 -08:00
AlexanderHOtt
84146f2396
remove database file (luckly it was empty)
2022-12-29 14:42:55 -08:00
AlexanderHOtt
221d3396f7
clean up code
2022-12-29 14:39:02 -08:00
AlexanderHOtt
9fd2e76917
add initial task loop for initial_prompt and rank_initial_prompts
2022-12-29 14:20:56 -08:00
AlexanderHOtt
99303ed265
move example.py to _example.py so it doesn't load on startup
2022-12-28 21:29:19 -08:00
AlexanderHOtt
c8834aa9e3
add a lot of examples
2022-12-28 21:24:53 -08:00
AlexanderHOtt
3ce6ab80d6
initial bot structure
2022-12-28 16:43:14 -08:00