Git Product home page Git Product logo

era-ai's Introduction

Google Gemini AI Discord Bot

This Discord bot, crafted by Taifyu, harnesses Google's Generative AI to furnish responses based on the Gemini model. It engages with messages in a designated channel, employing the Gemini model to generate content.

Installation

  1. Clone or download this repository.
  2. Install the requisite npm packages with npm install.
  3. Create a .env file in the root directory and furnish the necessary environment variables as indicated below:
API_KEY=your_google_api_key [Obtain API Here](https://aistudio.google.com/app/apikey)
BOT_TOKEN=your_discord_bot_token
CHANNEL_ID=your_discord_channel_id

Usage

  1. Execute the bot via node your_script_name.js.
  2. Ensure the bot has been incorporated into your Discord server.
  3. Input messages within the specified channel, and observe the bot's responses generated by the Gemini model.

Requirements

  • Node.js
  • npm
  • Discord.js
  • Google Generative AI package

Configuration

  • API_KEY: Your Google API key requisite for accessing the Generative AI.
  • BOT_TOKEN: Your Discord bot token.
  • CHANNEL_ID: The ID of the Discord channel designated for the bot's operation.

Credits

  • Bot devised by Taifyu.
  • This bot leverages the Google Generative AI library.
  • Developed with Discord.js.

License

This project is licensed under the MIT License.

era-ai's People

Contributors

zzyrexx avatar

Stargazers

 avatar

Watchers

 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.