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 

Bot not chatting

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Spartacus
Voice


Joined: 19 Jan 2007
Posts: 5

PostPosted: Fri Jan 19, 2007 12:02 pm    Post subject: Bot not chatting Reply with quote

Hello,
I have this script:
Code:
bind dcc - sayit dcc:sayit
proc dcc:sayit {handle, idx, handler} {
   putserv "PRIVMSG #channel :$handler"
   putmsg #channel "$handler"
}

#channel is the channel, it's not the real channel, this is just an example

When I say .sayit test, both putserv and putmsg don't work, because when I am in #channel, the bot won't say a thing (and the script won't give me an error either)

Can anybody help me? Smile

Thanks
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Fri Jan 19, 2007 3:00 pm    Post subject: Reply with quote

Don't use , in the variable-listing... Use a proper tcl list-structure:
Code:
proc dcc:sayit {handle idx handler} {


Also, for such simple tasks as sending texts, etc.. considder using puthelp rather than putserv (same syntax, just uses a low-priority queue rather than the one used for "important" stuffs such as opping, banning, kicking, etc).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Spartacus
Voice


Joined: 19 Jan 2007
Posts: 5

PostPosted: Sat Jan 20, 2007 8:21 am    Post subject: Reply with quote

Thanks Smile
This is inside my proc:
Code:
   putlog "test1"
   putserv "PRIVMSG #channel :just a test"
   puthelp "PRIVMSG #channel :just a test"
   putlog "test2"

It shows test1 and test2 in the log, but it doesn't say anything in the channel #channel.. what could be wrong?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Sat Jan 20, 2007 5:45 pm    Post subject: Reply with quote

Smells like a server-issue to me (desync'ed channel or such). Could you verify if you get the same behaviour if you make it msg you instead of that channel?
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Spartacus
Voice


Joined: 19 Jan 2007
Posts: 5

PostPosted: Sun Jan 21, 2007 3:45 am    Post subject: Reply with quote

Code:
   putserv "PRIVMSG $handle :just a test"
   puthelp "PRIVMSG $handle :just a test"

These two do work, I get a private message
Back to top
View user's profile Send private message
Spartacus
Voice


Joined: 19 Jan 2007
Posts: 5

PostPosted: Sun Jan 21, 2007 9:10 am    Post subject: Reply with quote

Sorry problem solved Razz
The channel mode was +m
So when the bot wasn't an op, he couldn't talk Razz
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 -> Scripting Help 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