/DiscordBot-EdgeGPT

Using Bing on discord bot, your Microsoft account needs to be able to access Bing first.

Primary LanguagePythonGNU General Public License v2.0GPL-2.0

DiscordBot-EdgeGPT

Using Bing on discord bot, your Microsoft account needs to be able to access Bing first.

Update

2023/4/5 : Now can generate images by Bing Image Creator.

2023/3/20 : make buttons disable after a click.

2023/3/19 : make reply messages with suggestion reply buttons.

Features (slash command)

  • bing: /bing [message]

    USE_SUGGEST_RESPONSES: True (can change in file config.yml)
    edgegpt
    USE_SUGGEST_RESPONSES: False (can change in file config.yml)
    edgegpt
  • bing image creator: /create_image [prompt]

    bingimage.png

  • conversation style (default balanced): /switch_style [style]

    style.png

  • reset: /reset

    reset

Install

git clone https://github.com/FuseFairy/DiscordBot-EdgeGPT.git
cd DiscordBot-EdgeGPT
pip install -r requirements.txt

Usage

  1. Rename the file.env.devto.env, then open it and edit it.

    DISCORD_BOT_TOKEN=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    
  2. Get Bing authentication.

    • Install the cookie editor extension for Chrome or Firefox.
    • Go to bing.com
    • Click "Export" on the bottom right.
    • Paste your cookies into a file cookies.json
  3. Start run your bot, hosted locally or on a server.

    -> Recommended Free Servers: fly.io

Credits

Contributors

This project exists thanks to all the people who contribute.