DiscordBot-EdgeGPT: Bringing AI to Discord
DiscordBot-EdgeGPT is a feature-rich project that integrates advanced AI capabilities into Discord, allowing for a dynamic interaction experience. This bot allows users to engage in conversations and complete tasks such as image generation using popular AI services, all from within the Discord platform.
Key Features
Slash Commands
Slash commands in Discord provide a familiar way to interact with bots. Here's what users can do with DiscordBot-EdgeGPT:
-
Separate Chat for Users: When initiating a chat, users can maintain individual conversation spaces.
-
Custom Cookie Settings: With
/cookies setting [cookies_file]
, users can upload their own cookies obtained from Bing to personalize their interaction. -
DALLE-3 Support: To generate images using the unofficial DALLE-3 API, users can set up their API key with
/dalle3 setting
. -
Copilot Interaction: The command
/copilot [version] [style] [type]
allows users to start a conversation with an AI copilot, selecting from options likecreative
,balanced
, orprecise
styles, and choosing betweenpublic
orprivate
threads. -
Image Generation: The
/create image [service][prompt]
command enables users to produce images via the integrated services. -
Conversation Management: Users can easily reset their chat with
/reset conversation
to start fresh.
Bot Mention
Users can invoke similar functionalities as the slash commands by simply mentioning the bot in a conversation. This also provides a dropdown list for settings, making it user-friendly and accessible.
Owner Prefix Commands
Bot owners have exclusive access to certain commands:
-
Load/Unload Commands: Owners can enable or disable functionalities using
!load [file_name]
and!unload [file_name]
. -
Log Management: Owners can clean log files with
!clean
and retrieve logs using!getLog
to monitor bot performance. -
Cookie Management: The
!upload [.txt_file]
command is used to set default cookies, similar to cookie settings for regular users.
Installation and Usage
To start using DiscordBot-EdgeGPT:
-
Installation: Install the necessary dependencies with
pip install -r requirements.txt
. -
Configuration: Rename
.env.dev
to.env
and edit it to set up your environment variables, such asDISCORD_BOT_TOKEN
andBING_COOKIES
. -
Cookies Setup: If not using automatic cookie acquisition, create a
cookies.json
file with cookies exported from Bing. -
Run the Bot: Initiate the bot by executing
python bot.py
.
Credits and Contributions
The development of DiscordBot-EdgeGPT is supported by a range of open-source projects including ReEdgeGPT, Sydney, and a free DALLE-E proxy. The project is continually improved by community contributions from developers and users.
Conclusion
DiscordBot-EdgeGPT leverages the power of AI to create a robust and interactive experience on Discord. With features that cater to both casual users and bot owners, it ensures a seamless integration of AI into everyday communication, providing an enhanced interaction platform within the Discord ecosystem.