Check if the bot is next to speak for an event.

Location

Defined in: interbot.tcl

Syntax

bMotion_interbot_me_next channel

  • channel: the channel to check

Use

Use bMotion_interbot_me_next when running a plugin that more than one bot will have picked up, but only one of them should respond to.

This function is the dynamic replacement for the "balefire" setting.

The function will return 1if it should be next to speak, or 0 if it should not.

If the function returns 1, it also immediately calls an election on the channel to update the values on all bots. If the function returns 0, your plugin should abort.

See also

Architecture: Interbot?