Commit Graph

8 Commits

Author SHA1 Message Date
303d3c07ac 🐛 fix(chat.py): fix typo in message.channel.send() method call
🔒 chore(chat.py): add moderation check for message content in call_function() to prevent sending blocked messages
🔒 chore(chat.py): add moderation check for query in call_function() to prevent sending blocked queries
🔒 chore(makeprompt.py): add moderation check for content in chatgpt_process() to prevent sending blocked content
🔒 chore(makeprompt.py): add depth check to prevent recursive answering in chatgpt_process()
2023-08-16 09:20:29 +02:00
d520b8b87c 🐛 fix(chat.py): add missing import statement for asyncio module
🐛 fix(chat.py): fix import statement for banusr module
 feat(chat.py): add functionality to ban and unban users with botator!ban and botator!unban commands
 feat(chat.py): add functionality to send messages from banned users after a delay
 feat(banusr.py): create banusr module to handle banning and unbanning of users
 feat(banusr.py): add functionality to ban a user by appending their ID to banend_users list
 feat(banusr.py): add functionality to unban a user by removing their ID from banend_users list
2023-08-15 19:20:12 +02:00
88d65e9f79 🎨 chore(*): run black to format the code 2023-08-15 12:38:47 +02:00
1e8eaf5ae0 🔧 chore(moderation.py): comment out unfinished ban command to prevent errors during development
🔧 chore(moderation.py): import commands from discord.ext to fix missing reference error
2023-08-15 11:23:52 +02:00
12f13ca6c4 Format with black 2023-07-18 17:51:13 +02:00
Paillat
41b2fde1e6 Fixed error with textchannel ony function and deprecated some comands 2023-07-16 22:43:18 +02:00
Paillat
a7fb55adba Squashed commit of the following:
commit 8da8703566
Author: Paillat <git@electronique.cc>
Date:   Sun Jul 16 20:41:18 2023 +0200

    chore(Dockerfile): change working directory from /Botator/code/ to /Botator/ to match the cloned repository structure

commit 84b464e9c8
Merge: 20bb931 e37377a
Author: Paillat <git@electronique.cc>
Date:   Sun Jul 16 20:27:25 2023 +0200

    Merge branch 'dev'

commit 20bb931491
Author: Paillat <git@electronique.cc>
Date:   Tue May 16 10:02:35 2023 +0200

    Reverted changes

commit 024bfde8a6
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 16:20:30 2023 +0200

    fix(makeprompt.py): add try-except block to handle errors when sending warning message if guild_data["images_limit_reached"] is True

commit 6effbe80ad
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 16:18:05 2023 +0200

    refactor(makeprompt.py): remove print statements

commit f144963592
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:24:22 2023 +0200

    refactor(makeprompt.py): remove unused code and variables
    feat(makeprompt.py): add print statement to check image status for guild

commit 81b9b92d50
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:19:26 2023 +0200

    refactor(makeprompt.py): remove unnecessary try-except blocks and print statements
    feat(makeprompt.py): add support for images data for guilds and users

commit 4c86f97fbe
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:12:20 2023 +0200

    refactor(makeprompt.py): simplify need_ignore_message function and remove unnecessary return statement
    fix(makeprompt.py): fix bug where messages in premium channels were being ignored

commit 41c73d2ee2
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 14:02:47 2023 +0200

    chore(makeprompt.py): add print statement for debugging purposes

commit 65ed0e6e07
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:58:41 2023 +0200

    refactor(makeprompt.py): remove unreachable code and debug statement

commit 82186386f7
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:56:04 2023 +0200

    fix(makeprompt.py): add exception handling to channel retrieval and debug message when no premium channels are found

commit 565d0f2956
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:47:37 2023 +0200

    refactor(makeprompt.py): rename variables for clarity and remove unnecessary pass statement

commit f6b67c7913
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:39:58 2023 +0200

    chore(makeprompt.py): add debug print statement to get_guild_data function

commit 788827ab48
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:35:19 2023 +0200

    refactor(makeprompt.py): remove unused code and simplify try-except block

commit 380165fa07
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:31:56 2023 +0200

    fix(makeprompt.py): add exception handling and raise exception instead of pass

commit 88e9acba80
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:28:27 2023 +0200

    FIXED THINGS

commit bee3680e63
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:18:26 2023 +0200

    Fixed wrong usage of cursor and conn with premium database

commit 205f1f5b3e
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 13:13:49 2023 +0200

    refactor(setup.py): remove try-except block and simplify code for checking premium status of guild

commit ca85067d70
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:57:52 2023 +0200

    fix(makeprompt.py): reverse order of messages when chat history is requested

commit 9c9d674b18
Merge: f145e09 d3a7ffd
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:48:04 2023 +0200

    Merge pull request #39 from Paillat-dev/dev

    Dev

commit f145e097b1
Merge: 4b1756e 0ea2672
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:47:21 2023 +0200

    Merge pull request #38 from Paillat-dev/Paillat-dev-patch-1

    Update chatGPT.txt

commit 0ea26727ec
Author: Paillat <git@electronique.cc>
Date:   Fri May 5 12:47:09 2023 +0200

    Update chatGPT.txt

commit 4b1756ede4
Author: Paillat <git@electronique.cc>
Date:   Thu Apr 6 18:28:15 2023 +0200

    Update chatGPT.txt
2023-07-16 20:41:51 +02:00
Paillat
4f9a7eb0a6 Added function calling and lots of other stuff 2023-07-15 12:20:38 +02:00