IanMitchell / ARX-7

A dumb IRC bot
6 stars 6 forks source link

Feature to Disable Triggers If Another Nick is Present Per Channel #55

Closed BlueCrystal closed 8 years ago

BlueCrystal commented 9 years ago

Request to add a feature that will keep the bot from responding to certain commands per channel if another nick is present. For example, if the bot were in #Horriblesubs, both Belfiore and another bot would respond to .choose. As well, if a YouTube link were pasted, Belfiore and Internets would respond as well. If it were possible to check for Internets or Yotsugi for the YouTube and Choose scripts respectively, it would stop double pasting as well as act as a failover if one of the other bots were to disappear.

kunaldes commented 9 years ago

AFAIK the framework doesn't store a list of users per channel, and it would be too expensive (and in the eyes of the irc server, spammy) to query the user list for every choose/youtube command.

While this would be nice to have, maintaining a list of active users per channel seems like a lot of work and it's something that ought to be done at the framework (node-irc) level rather than at the client level (ARX-7). But since node-irc isn't actively developed it might be worth looking into this.

On Wed, Sep 16, 2015 at 4:28 PM Aoi-chan notifications@github.com wrote:

Request to add a feature that will keep the bot from responding to certain commands per channel if another nick is present. For example, if the bot were in #Horriblesubs, both Belfiore and another bot would respond to .choose. As well, if a YouTube link were pasted, Belfiore and Internets would respond as well. If it were possible to check for Internets or Yotsugi for the YouTube and Choose scripts respectively, it would stop double pasting as well as act as a failover if one of the other bots were to disappear.

— Reply to this email directly or view it on GitHub https://github.com/IanMitchell/ARX-7/issues/55.

BlueCrystal commented 9 years ago

I'm assuming that the way the old Hexchat scripts for choose and youtube worked was based on the userlist that was kept then?

kunaldes commented 9 years ago

HexChat, being an actual IRC client, needs to keep track of user lists anyway (so it can display them), so it has this information readily available.

On Wed, Sep 16, 2015 at 7:08 PM Aoi-chan notifications@github.com wrote:

I'm assuming that the way the old Hexchat scripts for choose and youtube worked was based on the userlist that was kept then?

— Reply to this email directly or view it on GitHub https://github.com/IanMitchell/ARX-7/issues/55#issuecomment-140943497.

IanMitchell commented 9 years ago

We'd have to generate a list on channel join, store it in memory, and on each join/leave update the list. Doable, but a little painful