Skip to content

How to add Discord to panel AI ChatOps

The server must be able to communicate with Discord (discord.com).

Register Discord account

  • Please register an account at Discord

Add a Discord server

  1. Create a server in Discord alt text

  2. Optional: Skip the questions and proceed to the next step alt text

  3. Enter the server name Panel Alarm and create it alt text

Create Discord Bot

  1. Go to Discord Developer Portal and click New Application.

  2. Enter an application name and click Create. alt text

  3. Navigate to the Bot tab on the left sidebar.

  4. Under the Token section, click Reset Token and copy the new token. This will be used for panel configuration. alt text

Note: The token is only displayed once. Please save it securely.

  1. In the Bot tab, enable the following intents: Presence Intent, Server Members Intent, Message Content Intent, then click Save Changes. alt text

  2. In the Installation tab, under the Guild Install section, Select bot. In Permissions, select Pin Messages, Send Messages, View Channels, then click Save Changes. alt text

  3. In the Installation tab, under the Install Link section, Click Copy, then open the link in your browser to add the bot to your Discord server.

    • Copy the link: alt text

    • Open the copied link and add the bot to your Discord server: alt textalt text

  4. After adding the bot, you can see the notification in your Discord server. alt text

Add Discord Bot to ChatOps

  1. Go to AIChatOps in the panel, then click Add Channel and select Discord.

  2. Fill in the Discord Bot configuration: alt text

    • Select Model : Choose the AI model for Discord interactions.

    • Bot Token : Paste the Bot Token copied from the Discord Developer Portal.

    • Allowed Server IDs (Optional): Enter whitelisted Discord server IDs, one per line.

    • Allowed Channel IDs (Optional): Enter whitelisted Discord channel IDs, one per line.

    • High-risk Actions : Toggle to allow AI commands from Discord to execute high-risk operations.

  3. Click Save to complete the configuration.

Only whitelisted chats and users can interact with the AI assistant. If left empty, all chats and users can interact.

Test Discord Bot

In Discord, send a message in the allowed channel to start chatting with the panel AI.

alt text