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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
panasonic
Voice
Posts: 25 Joined: Sat Sep 15, 2007 5:27 am
Post
by panasonic » Sat Nov 17, 2007 12:19 pm
Hi!
do i need to create a script to make the bot have away message immediately after it's connected to the server, and how do i make the bot to private message a user once it is connected?
thank you
Last edited by
panasonic on Sun Nov 18, 2007 5:23 am, edited 1 time in total.
nml375
Revered One
Posts: 2860 Joined: Fri Aug 04, 2006 2:09 pm
Post
by nml375 » Sat Nov 17, 2007 12:27 pm
From the dist. configfile:
Code: Select all
# This is a Tcl script to be run immediately after connecting to a server.
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
}
use puthelp/putserv/putquick to send additional commands to the server, such as "PRIVMSG" and "AWAY"
NML_375
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Sun Nov 18, 2007 2:05 am
Code: Select all
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putserv "AWAY out to lunch"
putserv "PRIVMSG MyNick :$botnick online"
}
[Edited to add colon in privmsg]
Last edited by
DragnLord on Sun Nov 18, 2007 4:06 am, edited 1 time in total.
panasonic
Voice
Posts: 25 Joined: Sat Sep 15, 2007 5:27 am
Post
by panasonic » Sun Nov 18, 2007 3:35 am
DragnLord wrote: Code: Select all
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
putquick "MODE $botnick +i-ws"
putserv "AWAY out to lunch"
putserv "PRIVMSG MyNick $botnick online"
}
ok.. here is mine:
Code: Select all
bind evnt - init-server evnt:init_server
proc evnt:init_server {type} {
global botnick
utimer 10 [ putquick "MODE $botnick +iR-ws" ]
utimer 15 [ putserv "PRIVMSG BotMaster Hello I'm ONLINE now" ]
}
and then after 15 sec, BotMaster only received private message from the bot saying "Hello" only, not as full as "Hello I'm ONLINE now"
how do i recorrect this?
DragnLord
Owner
Posts: 711 Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA
Post
by DragnLord » Sun Nov 18, 2007 4:06 am
utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]
panasonic
Voice
Posts: 25 Joined: Sat Sep 15, 2007 5:27 am
Post
by panasonic » Sun Nov 18, 2007 5:22 am
DragnLord wrote: utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]
thanks DragnLord, that will do the trick