Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leetaogoooo/discord-robots

make gemini and bing create work on the discord
https://github.com/leetaogoooo/discord-robots

Last synced: 2 months ago
JSON representation

make gemini and bing create work on the discord

Awesome Lists containing this project

README

        

# Discord Gemini Robot

This project sets up a Discord bot using Python.

1. Answer questions and recognize image using Gemini
2. Create images using Bing Create
3. Enhances No.2 creation process using Gemini
4. Create excerpt card

## Features

- Question Answering: The bot can answer questions using the Gemini API.
- Image Recognize: The bot can recognize the content of the image.
- Bing Create Integration: The bot can create images using Bing Create and enhance the creation process using Gemini.
- Excerpt Card: The bot can create an excerpt card

## Installation

1. Clone the repository:

```shell

git clone https://github.com/LeetaoGoooo/discord-robots.git
```

2. Install the required dependencies:

```shell
pip install -r requirements.txt
```

3. Set up the token:

```shell
export DISCORD_TOKEN=DISCORD_TOKEN
export BING_TOKEN=BING_TOKEN
export GUILD=GUILD
export GEMINI_KEY=GEMINI_KEY
```

1. [How to get GUILD](https://support.discord.com/hc/en-us/articles/206346498)
2. [How to get BING_TOKEN](https://github.com/yihong0618/tg_bing_dalle#method-1-run-python-directly)

5. Run the bot:

```shell
python bot.py
```

or use Dockerfile

```shell
docker build -t discord-robots .
docker run --name name -d -e DISCORD_TOKEN=DISCORD_TOKEN -e GEMINI_KEY=GEMINI_KEY -e BING_TOKEN=BING_TOKEN discord-robots
```

## Usage

Once the bot is running, you can invite it to your Discord server and interact with it using various commands. Here are some examples:

Please refer to the documentation for more details on available commands and their usage.

## Contributing

Contributions are welcome! If you would like to contribute to this project, please follow the guidelines outlined in the CONTRIBUTING.md file.

## License

This project is licensed under the [MIT License](LICENSE).