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.

hello teens

Old posts that have not been replied to for several years.
Locked
a
awAcc

hello teens

Post by awAcc »

hi. I want my bot to kick messages with /me (msg) ..
How ?
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

bind msg o|o kick kick:user

proc kick:user {nick uhost hand arg} {
set user [lindex [split $arg] 0] ; set chan [lindex [split $arg] 1] ; set reason [lrange [split $arg] 2 end]
 if {[onchan $user $chan]} {
 putquick "KICK $chan $nick :$reason"
 puthelp "NOTICE $nick :kicked $user from $chan"
 }
}
this would kick the user from the channel when you /msg bot kick channel reason
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

As far as I can see he wanted an *action* thingie not a msg one. Do a lil forum search.
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

oh yeah, I just saw the (msg) ..missleaded me :P

well the same but yes a CTCP bind (ACTION), set the kick command to [lindex [split $arg] 0] and the others should be ok (just increase the 0 to 1 and the 1 to 2...etc)
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Again no, he wants his eggy to kick people who use channel actions not to use an channel action to make the eggy kick someone in the channel.

Code: Select all

set myreason "Your default reason goes here!"

bind ctcp * ACTION my:actions

proc my:actions {nick uhost hand dest keyword text} {
  if {![botisop $dest] || $nick == $::botnick || [matchattr $hand of|fo $dest]} { return }
  putquick "KICK $chan $nick :$::myreason"
}
Once the game is over, the king and the pawn go back in the same box.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

damn, right again :oops:
Locked