#Different discord channel with different bot configuration

9 messages · Page 1 of 1 (latest)

tall timber
#

Is it possible to set that specific discord channel the bot need to be @mention by anyone then only it will response, and at specific channel it will be without @mention at all.

candid hatchBOT
#

To help others find answers, you can mark your question as solved via Right click solution message -> Apps -> ✅ Mark Solution

tiny ploverBOT
brisk prismBOT
#

Yes, absolutely.

For Discord, requireMention can be set per guild and overridden per channel.

{
  channels: {
    discord: {
      guilds: {
        "YOUR_GUILD_ID": {
          requireMention: true, // default for this server
          channels: {
            "CHANNEL_ID_MENTION_ONLY": {
              enabled: true,
              requireMention: true,
            },
#
            "CHANNEL_ID_NO_MENTION": {
              enabled: true,
              requireMention: false,
            },
          },
        },
      },
    },
  },
}

So with that:

  • one channel only replies when people @mention the bot
  • another channel replies without @mention
#

A couple gotchas:

  • put it under channels.discord.guilds.<guildId> or the channel override
  • if you use groupPolicy: "allowlist", the channel must also be listed there
  • older examples may show allow: true, but current key is enabled: true

Docs:

If you want, paste your current channels.discord block and I’ll rewrite it for your exact channels.

tall timber
#

@brisk prism this is exactly what I did but failed. And then it keep crashes and bugged. LOL

brisk prismBOT
#

Oof, okay, if it’s actually crashing then we’re past “just config wrong” 😅

First thing, I need your version:

openclaw --version

Then paste these in one reply:

  1. your channels.discord config block
  2. this output:
openclaw doctor
openclaw channels status --probe
  1. the crash/error from: