Skip to content

E-m-i-n-e-n-c-e/Gemini-Chat-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discord Gemini Bot

This project is a Discord bot that integrates with the Google Gemini API . The bot is built using discord.py and google.generativeai.

Features

  • !ping: Returns "Pong!"
  • !flip: Flips a coin and returns "heads" or "tails".
  • !rps {hand}: Play rock-paper-scissors with the bot.
  • !edit servername {name}: Changes the server name.
  • !setdefaultvoice {category}: Sets the default voice category.
  • !setdefaulttext {category}: Sets the default text category.
  • !edit createtextchannel {name}: Creates a text channel in the default text category.
  • !edit createvoicechannel {name}: Creates a voice channel in the default voice category.
  • !edit createrole {name}: Creates a role with the specified name.
  • !kick {member} [reason]: Kicks the specified member from the server.
  • !ban {member} [reason]: Bans the specified member from the server
  • unban {user_name}: Unbans the specified user from the server
  • !query {question}: Queries the Gemini API with your question and returns a response.
  • !pm: Sends a private message to you asking how the bot can help and you can talk to it .
  • !gemini enable: Enables Gemini to respond to every message in the server.
  • !gemini disable: Disables Gemini from responding to every message in the server.

Setup

Prerequisites

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/discord-gemini-bot.git
    cd discord-gemini-bot
  2. Install Dependancies:

pip install -r requirements.txt
  1. Create a .env file in the root directory of the project and add the following lines:
DISCORD_API_TOKEN=<Your_Discord_Bot_Token>
Gemini_API_Key=<Your_Gemini_API_Key>

  1. Run the bot:
python bot.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages