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.

Unbinding commands on the bot

Old posts that have not been replied to for several years.
Locked
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Unbinding commands on the bot

Post by Fluxism »

Hi all,

I throw myself on the mercy of all you clever TCL people!

I need a way to unbind SAY and ACT as commands on the bot, globaly for all users (even +n or m) Or specific flags.

Has anyone seen such a script? Or would someone be willing to undertake the scripting of one? Would it be hard to do this? As I have 0.1% knowlegde of TCL so have no idea how simple or complicated it will be.

Any ideas etc would be appreciated. :D


Flux.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

I've did something for party line say and act. Put in the allowed list what users (theyr handle, not the nick) that you want to be able to use the say and act commands, the rest will get an "What? You need '.help'" msg.

Code: Select all

set allowed "bla"

bind filt - ".say" dont:allow
bind filt - ".act" dont:allow

proc dont:allow {idx args} { 
  global allowed 
  set usernick [idx2hand $idx] 
  if {[lindex $args 1] == ""} { 
    set icmd [lindex $args 0] 
    set args "$icmd " 
  } 
  if {[lsearch -exact [string tolower $allowed] [string tolower $usernick]] == -1} { 
    putdcc $idx "What?  You need '.help'" 
    } else { 
    return $args 
  }
}
Once the game is over, the king and the pawn go back in the same box.
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Caesar,

Thanks for the reply, very kind of you to script something for me :D

Sadly, it doesnt work though :(

It's loading fine, as i added a putlog entry, but it allows say and act to still be used. I tried it with set allowed "" and set allowed " " but each time it would output what I said to a channel.

If you have any addition ideas I would dance about the room etc. The bots a 1.6.13 btw



Flux.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

In the 2 binds lines, change the items tot he following (self evidant what to change).

".say *"
".act *"
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Hi ppslim,

Thanks for that it is now working perfectly.

And another thank you to ceaser for doing the scripting, nice people the both of you :lol:



Flux.
F
Fluxism
Halfop
Posts: 47
Joined: Mon Aug 05, 2002 8:58 am

Post by Fluxism »

Ceasar,

IMHO you should submit this script, I know it is a simple (to those who know TCL anyway..) Script but it is a very usefull one, I am sure I am not the only one to get lots of ppl talking or acting vie the bot..

Good job.



Flux.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Nevermind, I've did a test myself and understood what was the thing that was not working. Without the * he can skip the check. Thank ppslim for pointing this out.
Last edited by caesar on Thu Apr 10, 2003 11:12 am, edited 1 time in total.
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

Ceasar. Have you tried gseen.mod? Did the search AI trigger on blank lines?

Only reason I ask, as it would sugest a fishy mathcing problem that has been seen, to be a system issue.
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Yes, I have tryed and I'm still using the gseen module, what about it? Duno how to use the AI trigger.. I've tryed a "!seen *" and he replyes that there are to many results and to be more specific :)
Once the game is over, the king and the pawn go back in the same box.
p
ppslim
Revered One
Posts: 3914
Joined: Sun Sep 23, 2001 8:00 pm
Location: Liverpool, England

Post by ppslim »

What about if you send a a blank privmsg to a channel?
Locked