airi/services/discord-bot
2026-04-15 14:44:59 +08:00
..
src refactor(server): revert a8f445a17985a90d7eb5d981b4231114c3066e94 2026-03-28 02:25:44 +08:00
.env fix(discord): voice model from env 2025-05-10 10:47:26 +08:00
package.json chore(deps): bump dependencies 2026-04-15 14:44:59 +08:00
README.md docs(discord-bot): updated README.md 2026-03-10 01:59:26 +08:00
tsconfig.json style: many typescript v6 pending errors 2026-04-05 02:07:09 +08:00

discord-bot

Allow アイリ to talk to you and many other users in Discord voice channels.

Getting started

git clone git@github.com:moeru-ai/airi.git
pnpm i

In Discord Developer Portal, create a new application and this will be the bot you will add to your server.

In the "Bot" tab, find "Privileged Gateway Intents" section, toggle on the following intents:

  • "Server Members Intent"
  • "Message Content Intent"

Now look above the "Privileged Gateway Intents" section, you will find the "Token" section, for newly created bots, click "Reset Token" to generate a new token, and copy the token for later use.

Note

If you ever forgot the token or lost it, you can always click "Reset Token" to generate a new token, but remember to update the token in your .env.local file, or configure through the UI as well.

Create a .env.local file:

cd services/discord-bot
cp .env .env.local

Fill-in the following credentials as configurations:

DISCORD_TOKEN=''
DISCORD_BOT_CLIENT_ID=''

OPENAI_MODEL=''
OPENAI_API_KEY=''
OPENAI_API_BASE_URL=''

ELEVENLABS_API_KEY=''
ELEVENLABS_API_BASE_URL=''
pnpm run -F @proj-airi/discord-bot start

Other similar projects

Acknowledgements