voiceall.tcl - wilkowy/eggdrop-scripts GitHub Wiki

voiceall.tcl v1.2 (2021-06-29)

Voices users joining a channel.

Script requires wilk.tcl to be present in the same directory.

Custom flags:

  • voiceall - script is active only on channels with this flag (enable: .chanset #channel +voiceall, disable: .chanset #channel -voiceall)

Settings:

  • voice_delay - delay for giving a voice to prevent floods, in seconds (default: 5, instant: 0; "min:max" notation allowed)
  • voice_mode - voicing mode (1 or 2)
    • mode 1: with joins "join1 ... join2 ... join3" - only join1 starts timer and after voice_delay all valid users will be voiced
    • mode 2: with joins "join1 ... join2 ... join3" - every join resets timer, can be abused with part/join
  • ignored_users - users with such flags will be ignored (default: "I|I", off: "")
  • antiflood_delay - prevents from join-floods, in seconds (default: 2, off: 0)
  • use_botnet - if 0 bot voices on its own unless someone matching master_bots is present on channel with @; if 1 (default) all linked bots work together and decide which one will voice
  • ignored_bots - handles of bots not counted as voice-givers (if use_botnet == 1)
  • master_bots - handles of bots considered as higher ranked and if present on channel with @ then this bot will not act (if use_botnet == 0)

Additional info:

  • voices are given on user join, when bot gets +o or someone is devoiced
  • voices are not given if someone has +/%/@ after voice_delay
  • users having +autovoice/halfop/op and those with a/y/g/q/k flags (autoop/autohalfop/autovoice/quiet/autokick) are excluded
  • if use_botnet is enabled then voiceall.tcl must be loaded on all linked bots and +voiceall have to be synced, if some bots can't work together (for example no shell access) put their handle in ignored_bots in each script