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 

[SOLVED] Away once connected & priv. msg user

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
panasonic
Voice


Joined: 15 Sep 2007
Posts: 25

PostPosted: Sat Nov 17, 2007 12:19 pm    Post subject: [SOLVED] Away once connected & priv. msg user Reply with quote

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
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Nov 17, 2007 12:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun Nov 18, 2007 2:05 am    Post subject: Reply with quote

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
View user's profile Send private message
panasonic
Voice


Joined: 15 Sep 2007
Posts: 25

PostPosted: Sun Nov 18, 2007 3:35 am    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Sun Nov 18, 2007 4:06 am    Post subject: Reply with quote

utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]
Back to top
View user's profile Send private message
panasonic
Voice


Joined: 15 Sep 2007
Posts: 25

PostPosted: Sun Nov 18, 2007 5:22 am    Post subject: Reply with quote

DragnLord wrote:
utimer 15 [ putserv "PRIVMSG BotMaster :Hello I'm ONLINE now" ]

thanks DragnLord, that will do the trick Very Happy
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 -> Script Requests 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