egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

[SOLVED] Problem with bind pub + botnick format

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
cleaner
Voice


Joined: 13 Apr 2009
Posts: 15

PostPosted: Thu Apr 16, 2009 5:19 pm    Post subject: [SOLVED] Problem with bind pub + botnick format Reply with quote

Hello!

Please tell me how to change this script to use this like:

Code:
bot_nick: !help


at this time it is:

Code:
!help


Code:
bind pub -|- !help pub_do_shelp


proc pub_do_shelp {nick host handle channel text} {

   putserv "NOTICE $nick :Public commands: !..."
}


Please answer me!


Last edited by cleaner on Sat Apr 18, 2009 1:43 pm; edited 2 times in total
Back to top
View user's profile Send private message
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Fri Apr 17, 2009 7:16 pm    Post subject: Reply with quote

Perhaps the reason for limited response here is that we can't really believe that you would want to change the simplicity of a !help trigger to one rather longer and more awkward.

By bot_nick: !help I assume you mean $botnick: !help rather than the literal meaning. You will need to employ a PUBM bind something like the following :-

Code:

bind PUBM - * pub_do_shelp

proc pub_do_shelp {nick uhost hand channel txt} {
  global botnick
  if {[string match "$botnick\: !help" [string trim $txt]]} {
      putserv "NOTICE $nick :Public commands\: !..."
  }
}

_________________
I must have had nothing to do
Back to top
View user's profile Send private message
cleaner
Voice


Joined: 13 Apr 2009
Posts: 15

PostPosted: Sat Apr 18, 2009 1:40 pm    Post subject: Reply with quote

arfer,

Thanks, you halped me! Smile.

Before this I was trying something like:

Code:
#bind pubm -|- "% $botnick*\!cmd" pub_do_cmd


But your sollution is understanding for me and is working! Smile

Thanks man!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber