Code Monkey home page Code Monkey logo

Comments (6)

rebek43 avatar rebek43 commented on July 23, 2024 1

But it sounds like you're asking for something different, which is for the bot to respond to direct pings but to not follow up with unsolicited responses in all but one channel. Is that right?

Correct

from oobabot.

chrisrude avatar chrisrude commented on July 23, 2024

Thanks for the suggestion!

I'm curious what you're seeing, could you describe a little more what behavior you're observing on your server and what you'd like the fix to address?

I know on my server we only talk to the bot in a single channel, so that people who don't care about the bot can just mute the channel to not be annoyed. And as you might know you can (restrict the bot to certain channels)[https://github.com/chrisrude/oobabot/blob/main/docs/FAQ.md#q--limit-the-bot-to-certain-channels].

But it sounds like you're asking for something different, which is for the bot to respond to direct pings but to not follow up with unsolicited responses in all but one channel. Is that right?

from oobabot.

chrisrude avatar chrisrude commented on July 23, 2024

Been thinking about this; what if the restriction were around the number of channels the bot could participate in. i.e. it would post unsolicited messages only in the two most recent channels it was summoned in.

from oobabot.

chrisrude avatar chrisrude commented on July 23, 2024

I'm trying as much as possible to have a sensible set of default behaviors. When there are tons of options that can be intimidating to folks and ask a lot of their time, and I want to make this as easy as possible for folks to just get something working.

Limiting it two 2 unsolicited channels also furthers the goal of having the bot act as "human-like" as possible... a human wouldn't carry on a conversation in more than a few channels at a time. And it would serve the requested goal of limiting spam in large servers.

That said, if the bot keeps getting pinged back and forth in different channels it could still create a lot of noise, but the solution to that might be for the admin to restrict the channels it has access to.

from oobabot.

chrisrude avatar chrisrude commented on July 23, 2024

@rebek43 I added this in the above commit:

Adds a new unsolicited_channel_cap option in
discord section of config.yml. It does this:

FEATURE PREVIEW: Adds a limit to the number of channels
the bot will post unsolicited messages in at the same
time. This is to prevent the bot from being too noisy
in large servers.

When set, only the most recent N channels the bot has
been summoned in will have a chance of receiving an
unsolicited message. The bot will still respond to
@-mentions and wake words in any channel it can access.

Set to 0 to disable this feature.

Assuming you have a config.yml file already, you can generate an updated version with cp config.yml config.yml.backup && oobabot -c config.yml.backup --gen > config.yml

You can then diff config.yml.backup config.yml to see what changed.

If you are running from source, do you want to try this out and let me know how it works for you? If not it should be in the next release.

from oobabot.

rebek43 avatar rebek43 commented on July 23, 2024

should do the trick
thanks

from oobabot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.