This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Public commands

Old posts that have not been replied to for several years.
Locked
N
Neo

Public commands

Post by Neo »

hey,
I got a tcl script with normal public commands (!op, !deop, etc..), but i got more than one bot...so when i type a command like !die , all of my bots goes down, or !say - the chan gets flooded;p
so i was wondering, how can i make the binds so that when i type:
Botnick op <--- i get opped by that specific bot? :-?

bind example:
bind pub m|m !say say

what i wanna do is:
bind pub m|m $botnick|$nick say say (won't work this way..just trying to make it a bit more clear;p)
(like botservice's script...unfortunately i was unable to find a script similar to theirs)

but i know it wont work this way;p
any ideas?
thanks.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Code: Select all

bind pub o ${botnick} public:commands

proc public:commands {nick host handle channel text} {
  switch -- [strlwr [lindex $text 0]] {
    "op" {
      # somehting
    }
    "deop" {
      # somehting
    }
  }
}
Once the game is over, the king and the pawn go back in the same box.
Locked