Giter Site home page Giter Site logo

krosskid12 / discordbot-edgegpt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fusefairy/discordbot-edgegpt

0.0 0.0 0.0 111 KB

Using Microsoft's Bing Chat AI and Bing Image Creator on discord bot.

License: GNU General Public License v2.0

Python 99.25% Dockerfile 0.75%

discordbot-edgegpt's Introduction

DiscordBot-EdgeGPT

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

Update

2023/4/19 : When old Cookies expire, the bot can set new Cookies directly by prefix command.

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

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

Prefix command (available only to bot owner)

  • !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.

    load & unload

  • !clean: Empty discord_bot.log file.

  • !getLog: Get discord_bot.log file. Real-time tracking of the bot's operating status.

    getLog

  • !upload [.txt_file]: Because Bing Cookies will expire, so this command can set new Cookies directly and restart bot. You just need to copy bing cookies and past, the Cookies will auto convert to .txt file.

    upload

Install

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.

discordbot-edgegpt's People

Contributors

fusefairy avatar hello-navi avatar nqngo avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.