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.

Connecting commads

Help for those learning Tcl or writing their own scripts.
Post Reply
P
Perhap
Voice
Posts: 2
Joined: Wed Mar 09, 2011 1:31 pm

Connecting commads

Post by Perhap »

Hey

I got a basic idea of scripting but i dont know how to connect some commands with differnt files.

for example i want to write "!test" and the bot should write a text that I got in a textdoc. i cant do so by letting the bot write something in the channel because i want another bot to edit this textfile ongoing.

and secondly i dont get how i let the bot change the topic not using partyline. and edit it ongoing . so if somebody writes in the channel "!searchtest" my eggdrop changes the topic to : " nicks serching: examplename is searching for example.

and if anotherone writes "!searchtest2" the bot changes to ."
nicks serching: examplename is searching for example, examplename is searching for example2.

this should go on, so everbody can edit the topic by using one command but not change it to whatever and whenever he wants.

so far i got this but its not working:

Code: Select all

bind pub - !search "text" pub_search
proc pub_search {nick uhost hand chan arg} { 
global no_bots 

putlog "$nick used !search $arg" 
putchan $chan "\002 Who isn´t sticking to the rules will be kicked!" 
puthelp "TOPIC $chan $arg : §text
puthelp "NOTICE $arg : Changed Topic to "§text"
}
Im looking forward to some help

regards Perhap
Post Reply