Important
Because Microsoft changed the cookie expiration time from one week to only 3 days and made it easier to trigger Captcha challenges, it is no longer convenient to use. Apart from generating images, if you simply want to chat with an AI, I recommend using Gemini discord bot, which is much more user-friendly.
2024/3/30:Support DALLE-3(Unofficial), get api key from https://dalle.feiyuyu.net/dashboard.
-
cookies setting (set for using personal Bing Cookies):
/cookies setting [cookies_file]
- Can upload own cookies (get from https://bing.com/).
-
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
. - [plugin]:Currently only supports Suno.
- [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
-
!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.
pip install -r requirements.txt
- Rename the file
.env.dev
to.env
, then open it and edit it.
Warning
AUTO_COOKIES features are still being tested, so it may not work for everyone, and if you want to use with BING_COOKIES, you need to set BING_COOKIES first to work properly.
DISCORD_BOT_TOKEN=
# (Optional) If you are run with Replit, it is recommended to configure cookies using this parameter instead of using cookies.json
BING_COOKIES=
# (Experimental) Automatically obtain Bing cookies and regular updates
AUTO_COOKIES=False # False/True
# (Optional) proxy
PROXY=
# Timeout for BingImageCreator
IMAGE_TIMEOUT=300
IMAGE_MAX_CREATE_SEC=300
# 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=1227670969702754857
# (Optional) Allow each commands in some channels.
# specific channel(s) for `/cookies setting`
COOKIES_SETTING_CHANNEL_ID=1227670969702754857,1227327094070254857
# specific channel(s) for `/dalle3 setting`
DALLE3_SETTING_CHANNEL_ID=122767096970275483
# specific channel(s) for `/copilot`
CHAT_CHANNEL_ID=
# specific channel(s) for `/create image`
CREATE_IMAGE_CHANNEL_ID=
# specific channel(s) for `/reset conversation`
RESET_CHAT_CHANNEL_ID=
# specific channel(s) for `/help`
HELP_CMD_CHANNEL_ID=
-
Create the
cookies.json
file. (If you have set BING_COOKIES or set AUTO_COOKIES to True in the.env
file, skip this step!)- 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
-
ReEdgeGPT - https://github.com/Integration-Automation/ReEdgeGPT
-
free-dall-e-proxy - https://github.com/Feiyuyu0503/free-dall-e-proxy
This project exists thanks to all the people who contribute.