Commit Graph

11 Commits

Author SHA1 Message Date
Paillat
bee3680e63 Fixed wrong usage of cursor and conn with premium database 2023-05-05 13:18:26 +02:00
Paillat
205f1f5b3e refactor(setup.py): remove try-except block and simplify code for checking premium status of guild 2023-05-05 13:13:49 +02:00
Paillat
94974b2bd3 refactor(help.py, settings.py): remove debug import and debug statements
feat(settings.py): add ctx_to_guid function to convert context to guild id for database queries
feat(settings.py): add support for changing the model used by the bot
fix(settings.py): fix images command not updating the database correctly

feat(cogs/setup.py): add dms_only check to setup_dms command
refactor(cogs/setup.py): move ctx_to_guid function to config.py
refactor(cogs/setup.py): move mg_to_guid function to config.py

feat(makeprompt.py): add support for DMs conversations
fix(makeprompt.py): fix images setting retrieval from database
fix(makeprompt.py): fix guild_id to guid conversion in database queries
refactor(makeprompt.py): extract historicator function to get the channel or user of a message
refactor(makeprompt.py): remove debug statements and unused variables
2023-05-05 12:38:02 +02:00
Paillat
a77504a028 refactor(setup.py): add default_permissions decorator to all commands that require administrator permissions 2023-04-08 17:08:49 +02:00
Paillat
da21aa283f [BUG] Replaced database conn names 2023-04-03 15:12:50 +02:00
Alexis LEBEL
ddbeea3ae6 [GENERAL] Refactoring for DB 2023-03-31 16:11:03 +02:00
Alexis LEBEL
42cb2e9135 [GENERAL] Code reformatting using Black standard 2023-03-31 14:09:06 +02:00
Paillat
82fbdee77a Improved makeprompt, cleaned code a bit 2023-03-01 23:46:54 +01:00
laToufff
fccac89e2f add remove_channel 2022-12-15 19:56:15 +01:00
laToufff
b869bd9757 add "add_channel" command for premiums 2022-12-15 18:59:21 +01:00
Liam Kern
1fb0e268b5 reorganize code into cogs 2022-12-08 22:21:53 +01:00