DiscordBot-EdgeGPT
DiscordBot-EdgeGPT copied to clipboard
Using Copilot, Bing Image Creator and DALLE-3 on Discord bot.
DiscordBot-EdgeGPT
Using Copilot and Bing Image Creator、DALLE-3 on discord bot.
Update
2024/3/5:Images can be generated while chatting.
2024/2/2:To optimize usage, recommended to re-read the README.
2024/1/27:Add jail break version, but image uploads are currently not supported, and python version need 3.10+.
2024/1/15:Can create thread to chat with Copilot.
2023/12/22:Support uploading image while chatting.
Features
Slash command
will create a separate chat for each user.
-
cookies setting (set for using personal Bing Cookies):
/cookies setting [cookies_file]
- Can upload own cookies (get from https://bing.com/). Supports simultaneous uploads.
- Can upload own cookies (get from https://bing.com/). Supports simultaneous uploads.
-
Unofficial DALLE-3 api key setting (set for using personal unofficial DALLE-3 api key, can get from https://dalle.feiyuyu.net/dashboard):
/dalle3 setting
-
copilot:
/copilot [version] [style] [type]
- A separate thread will be created, if use default version, can generate images while chatting.
- [version]:
default
can chat with Copilot,jailbreak
chat with Sydney, butjailbreak
image uploads are not currently supported. - [style]:Have 3 conversation style can choose,
creative
、balanced
andprecise
. - [type]:Options for thread type,
public
orprivate
.
- [version]:
- A separate thread will be created, if use default version, can generate images while chatting.
-
image creator:
/create image [service][prompt]
-
reset conversation:
/reset conversation
Mention bot
same function as the slash command, but this will reply all user messages.
-
If only the bot is mentioned, you will get a drop-down list of settings.
Prefix command (available only to bot owner)
bot owner setting.
-
!unload [file_name_in_cogs_folder]
: Disable command from the specified file. -
!load [file_name_in_cogs_folder]
: Enable the command from the specified file. -
!clean
: Empty discord_bot.log file. -
!getLog
: Get discord_bot.log file. Real-time tracking of the bot's operating status. -
!upload [.txt_file]
: Same as/cookies setting
, but for default cookies.
Install
pip install -r requirements.txt
Usage
-
Rename the file
.env.dev
to.env
, then open it and edit it.DISCORD_BOT_TOKEN= # Timeout for BingImageCreator IMAGE_TIMEOUT=300 IMAGE_MAX_CREATE_SEC=300 # (Optional) Set unofficial DALLE-3 api key, api key can get from https://dalle.feiyuyu.net/dashboard dalle3_unofficial_apikey= # (Optional) Allow mention bot only in specific channel. MENTION_CHANNEL_ID= # (Optional) Allow each commands only in specific channel. # specific channel for /cookies setting COOKIES_SETTING_CHANNEL_ID= # specific channel for /dalle3 setting DALLE3_SETTING_CHANNEL_ID= # specific channel for /copilot CHAT_CHANNEL_ID= # specific channel for /create image CREATE_IMAGE_CHANNEL_ID= # specific channel for /reset conversation RESET_CHAT_CHANNEL_ID= # specific channel for /help HELP_CMD_CHANNEL_ID=
-
Create the
cookies.json
file.- Install the cookie editor extension for Chrome or Firefox.
- Go to bing.com
- Click "Export" on the buttom right.
- Paste your cookies into a file
cookies.json
-
Start run your bot.
python bot.py
Credits
-
ReEdgeGPT - https://github.com/Integration-Automation/ReEdgeGPT
-
Sydney - https://github.com/juzeon/SydneyQt/tree/v1
-
free-dall-e-proxy - https://github.com/Feiyuyu0503/free-dall-e-proxy
Contributors
This project exists thanks to all the people who contribute.