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 

Connecting commads

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


Joined: 09 Mar 2011
Posts: 2

PostPosted: Wed Mar 09, 2011 1:43 pm    Post subject: Connecting commads Reply with quote

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:

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
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