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.

perform

Old posts that have not been replied to for several years.
Locked
s
sir
Voice
Posts: 21
Joined: Sat Aug 28, 2004 10:57 pm

perform

Post by sir »

OK, I need help with doing the following:

When my bot connects to the GameSurge IRC network, it will immeaditley:
- authenticate to authserv (just a /msg cmd)
- and /msg me saying "im online"


basically, I want to translate my mirc perform.ini over to eggdrop (because I also want the bot to have a "perform" if it connects to QuakeNet instead of GameSurge)


P.S. can somebody please check out http://forum.egghelp.org/viewtopic.php?p=41501#41501
User avatar
]Kami[
Owner
Posts: 590
Joined: Thu Jul 24, 2003 2:59 pm
Location: Slovenia
Contact:

Post by ]Kami[ »

You should check this....There was allready much talk about authing on connect...
s
sir
Voice
Posts: 21
Joined: Sat Aug 28, 2004 10:57 pm

Post by sir »

thanks for help...now I have two more questions.

How would I set a timer in this perform (basically because I need the bot to do this:

join #irpg
THEN msg the irpg


right now it's msg'ing the bot before joining the channel, which doesn't work



secondly, how do I get the bot to set a topic in a channel?
basically:
join #testchannel
set topic http://egghelp.org
User avatar
YooHoo
Owner
Posts: 939
Joined: Thu Feb 13, 2003 10:07 pm
Location: Redwood Coast

Post by YooHoo »

sounds like you need a fully functional script like stormbot or something along those lines. Check out the tcl archives, there are many scripts already written to make new topics and such :mrgreen:
s
sir
Voice
Posts: 21
Joined: Sat Aug 28, 2004 10:57 pm

Post by sir »

why would I need a "fully functional" script for that?

I mean, what are the commands to:
a) set a topic
b) use a timer-like effect
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

a)

Code: Select all

putserv "TOPIC #channel :topic"
b)

Code: Select all

# start the timer if its not already running
if {![string match "*your_proc*" [timers]]} {
 timer 10 your_proc
}

proc your_proc {} {
 # your code goes here

 # run it again in 10 min
 if {![string match "*your_proc*" [timers]]} {
  timer 10 your_proc
 }
}
s
sir
Voice
Posts: 21
Joined: Sat Aug 28, 2004 10:57 pm

Post by sir »

awesome, thanks
Locked