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
2023-07-16 20:41:51 +02:00
2022-11-26 17:29:04 +01:00
e
2023-05-16 12:06:21 +02:00
2023-07-16 20:41:51 +02:00
2022-12-11 23:00:59 +01:00
2022-12-14 22:48:13 +01:00
2023-03-18 20:21:24 +01:00
2022-12-14 23:04:27 +01:00

Botator

Botator is a discord bot that binds @openai 's chat-GPT AI with @discord. It also has images recognition and moderation features! discord com_channels_1021872219888033903_1046119234033434734

Adding the bot to your discord server

In order to add the bot to your discord server, you will need an OpenAI API key. You can create an account and take one here. Please note that you'll have 5$ free credits (it's really a lot) when creating your account. They will be slowly used, and will expire 3 months after you created your accound, and when they have all been used or expired, you'll need to buy new tokens. You can check your tokens usage here.

When adding the bot to your server you agree to our privacy policy and our terms of service

You can add the bot to your server by clicking here. PLEASE NOTE THAT WE ARE NOT RESPONSIBLE FOR ANY MISUSE YOU'LL DO WITH THE BOT..

Setting up the bot

Run the following commands to set your bot up:

First /setup, define the channel you want the bot to talk into and your OPENAI api key.

Then, /enable to enable the bot.

Then, if you want, /advanced to define some more advanced parameters, and if you want to enable image recognition, /images to enable it. You can also enable the moderation feature by doing /moderation.

You can always disable the bot by doing /disable and delete your api key from our server by doing /delete.

Please note that we can possibly log the messages that are sent for no more than 24h, and that we will store your openai API key. You can always delete your API key from our servers by doing /delete. Please note that this action is irreversible.

You can now enable your bot by doing /enable.

You can always disable the bot by doing /disable and delete your api key from our server by doing /delete.

Commands reference

/setup - Setup the bot

/enable - Enable the bot

/disable - Disable the bot

/advanced - Set the advanced settings

/advanced_help - Get help about the advanced settings

/enable_tts - Enable the Text To Speech

/disable_tts - Disable the Text To Speech

/delete - Delete all your data from our server

/cancel - Cancel the last message sent by the bot

/default - Set the advanced settings to their default values

/redo - Redo the last answer

/help - Show this command list

/moderation - Set the AI moderation settings

/get_toxicity - Get the toxicity that the AI would have given to a given message

/images - Set the AI image recognition settings

Support me

You can support me by getting Botator premium, or donating here. More informations about botator premium here below:

Why?

At the beginning, Botator was just a project between friends, but now many people are using it, so we need something to pay for our servers. Premium is also a way to support us and our work.

Is this mandatory?

Not at all! You can still continue using botator for free, but in order to limit our servers overload, we limit your requests at 500 per server per day.

What are my advantages with premium?

With premium, we will increase the maximal number of requests to 5000 for the server of your choice. You will also have access to exclusive Discord channels and get help if you want to self-host Botator. You will also be able to use the image recognition feature.

Am I going to have unlimited tokens with premium?

No! With premium, Botator will still use tokens from YOUR OpenAI account, but you will be able to use it 5000 times per day instead of 500.

How much doe it cost?

Premium subscription costs 1$ per month.

How can I get premium?

First join our discord server here.

Then subscribe to botator premium by clicking here:

Then, link your discord account to BuyMeACoffe by following these instructions. After that you will normally be able to access some new channels in our discord server. In the Verify Premium channel, run the /premium_activate command and give your server's ID. You can learn about how to get your server's ID by clicking here. If you have any question, you can ask here: help-getting-premium.

ToDo

  • add image recognition
  • When chatgpt API is released, add that api instead of davinci-003
  • Publish a GOOD docker image on dockerhub and add some more instructions about how to selfhost
  • Add a log and updates channel option and a way for devs to send messages to that channel on all servers.
  • Add moderation.
  • Add TOKENS warnings (when setting the bot up, people dosen't understand tha ot uses their tokens)
  • Add a /continue command - you know
  • Add DateHour in prompts
  • Add /redo
  • Add uses count reset after 24h
  • Organize code in COGs
  • add way to consider the answers to the bot's messages.
Languages
Python 99.3%
Dockerfile 0.7%