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.

[SOLVED] Away once connected & priv. msg user

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
p
panasonic
Voice
Posts: 25
Joined: Sat Sep 15, 2007 5:27 am

[SOLVED] Away once connected & priv. msg user

Post by panasonic »

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.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

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.
p
panasonic
Voice
Posts: 25
Joined: Sat Sep 15, 2007 5:27 am

Post by panasonic »

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?
User avatar
DragnLord
Owner
Posts: 711
Joined: Sat Jan 24, 2004 4:58 pm
Location: C'ville, Virginia, USA

Post by DragnLord »

utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]
p
panasonic
Voice
Posts: 25
Joined: Sat Sep 15, 2007 5:27 am

Post by panasonic »

DragnLord wrote:utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]
thanks DragnLord, that will do the trick :D
Post Reply