| View previous topic :: View next topic |
| Author |
Message |
panasonic Voice
Joined: 15 Sep 2007 Posts: 25
|
Posted: Sat Nov 17, 2007 12:19 pm Post subject: [SOLVED] Away once connected & priv. msg user |
|
|
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 |
|
| Back to top |
|
 |
nml375 Revered One
Joined: 04 Aug 2006 Posts: 2857
|
Posted: Sat Nov 17, 2007 12:27 pm Post subject: |
|
|
From the dist. configfile:
| Code: | # 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, idling at #eggdrop@IrcNET |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Nov 18, 2007 2:05 am Post subject: |
|
|
| Code: | 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 |
|
| Back to top |
|
 |
panasonic Voice
Joined: 15 Sep 2007 Posts: 25
|
Posted: Sun Nov 18, 2007 3:35 am Post subject: |
|
|
| DragnLord wrote: | | Code: | 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: |
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? |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Sun Nov 18, 2007 4:06 am Post subject: |
|
|
| utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ] |
|
| Back to top |
|
 |
panasonic Voice
Joined: 15 Sep 2007 Posts: 25
|
Posted: Sun Nov 18, 2007 5:22 am Post subject: |
|
|
| DragnLord wrote: | | utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ] |
thanks DragnLord, that will do the trick  |
|
| Back to top |
|
 |
|