This is a Discord chatbot that uses the Gemini API to generate text. It is written in JavaScript and uses the Discord.js library.
You can check this Medium article for a detailed explanation of how to use this bot: Membuat Chatbot Discord dengan Gemini API
You should have a Discord bot token and Gemini API key to use this bot. You can get the Discord bot token from the Discord Developer Portal. You can get the Gemini API key from the Gemini API website.
Put the Discord bot token and Gemini API key in the .env
file. You can use the .env.example
file as a template.
DISCORD_API_KEY= # Your Discord API key
GEMINI_API_KEY= # Your Gemini API key