Commit Graph

20 Commits

Author SHA1 Message Date
Alex Ott dfd2c35276 Feat/task handler (#1056)
* move task logic to task handlers

* rename command

* remove test code

* rename classes and add missing handler creations

* switch task back to random and fetch log_channel_id from db
2023-02-02 17:28:00 +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
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
kostiak bd2a7e93e3 fixing issue #202 2022-12-31 17:53:04 +01:00
Alex Ott 1bdd02c821 fix breaking api changes 2022-12-30 22:52:57 -08:00
Alex Ott 004a868cb4 update user input validator 2022-12-30 17:44:20 -08:00
Alex Ott 6cccd74e34 switch to loguru 2022-12-30 05:28:51 -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 d71ded1364 send the task completion message in the guild's configured channel 2022-12-30 03:15:22 -08:00
Alex Ott 63e2120825 add completion message to task and add message labeling 2022-12-30 02:02:46 -08:00
Alex Ott a2a0e1608d fix: parse TaskRequestType enum correctly 2022-12-29 15:45:01 -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