Open source Discord AI Bot powered by Gemini, ChatGPT, and Ollama
- Use it anywhere! - CloudAI works in Servers / DMs / Groups!
- Image Generation - Generates images based on user prompts with Gemini!
- Reply CloudAI through Pings / DMs - Ping/Reply CloudAI to interact! Also works by DM-ing the bot. (ClydeAI Reference)
- Node.JS (LTS Recommended)
- Discord Bot, Token, and Client ID: (Create your bot in Discord Developer Portal)
- Gemini API Key: (Create your API Key in Google AI Studio)
- (Optional) ChatGPT API Key: (Create your API Key in OpenAI Platform)
- (Optional) oLlama Server: (Download ollama right here!)
- Clone the repository
git clone https://github.com/cloudguy9/cloudAI cd cloudAI
- Install dependencies:
npm install
- Configure the bot
- Copy
config.example.json
and paste asconfig.json
. - Inside config.json, place your discord bot token in: bot.token, and then place your bot's clientID in: bot.clientId
- Select your desire provider in the config:
ai.provider
. (Choose 'gemini', 'chatgpt', 'ollama') - And now, place your API key into your desired provider. (ollama = local)
- Copy
- Start the bot:
You can use
node .
ornpm start
.
/ask [prompt]
: Start your conversation w/ AI/prompt [prompt]
: Generates an Image based on prompt (Currently this is only available for Gemini)
- We welcome contributions! Feel free to fork the repository, create new branch (cloudai/my-feature) or switch to dev branch,
- make your changes, and submit a pull request to dev branch.