BingGPT Discord Bot that can handle /ask & /imagine prompts using @acheong08's reverse engineered API of Microsoft's Bing Chat under the hood
BingGPT-Discord-Bot is a Discord bot that can be invited to any Discord servers and be interact with Microsoft's Bing Chat. It's on top of https://github.com/acheong08/EdgeGPT reverse engineered API of Microsoft's Bing Chat which is currently running with GPT-4 and recently started to support Text-to-Image generation
Mozilla/5.0 (Windows NT 10.0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36 Edg/109.0.1474.0
). You can do this easily with an extension like "User-Agent Switcher and Manager" for Chrome and Firefox.bing.com
cookies.json
git clone https://github.com/ediziks/BingGPT-Discord-Bot.git
cd BingGPT-Discord-Bot
cookies.json
file into the main path. See Getting authentication (Required) section above for more information. Also, check example.cookies.json
file to see the right pathBOT_TOKEN
& SERVER_ID
) in the .env
file. See .example.env
file to get the right format and the path. Check creating Discord bot and getting the token for more details about the BOT_TOKEN
. And, the SERVER_ID
can be simply copied by right clicking the server logo you want to invite the bot, and selecting COPY_ID
. See how to get Discord server id for more information.pip install -r requirements.txt
bot.py
and run_dcbot.sh
files executable
chmod +x dcbot/bot.py run_dcbot.sh
python dcbot/bot.py
./run_dcbot.sh
dcbot/bot.log
ps ax | grep bot.py
sudo kill -9 <proces_id>
docker-compose build
docker-compose up
docker-compose up -d
See how to invite a bot to Discord server for more information about the bot invitation. Make sure that the bot permissions look like as in the image below before generating the invitation url
/ask <prompt> - Ask BingGPT a question
/imagine <prompt> - Ask BingGPT to imagine visuals
/reset - Reset the conversation
/hardreset - Reset the session