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.

Search found 14 matches

by boehmi
Thu Sep 17, 2009 1:25 pm
Forum: Scripting Help
Topic: chanlist doesn't work on join event
Replies: 5
Views: 3887

No, thats not the task.. it was just an example ;)

We have an authorization-system and the bot is part of it.
If he restarts for any reason, he just shall kill all users in the channel, so they have to reconnect und re-auth with the bot.
by boehmi
Thu Sep 17, 2009 12:58 pm
Forum: Scripting Help
Topic: chanlist doesn't work on join event
Replies: 5
Views: 3887

Thank you... it works with a 10 seconds timer
Is there a possibility to quicken the update?
by boehmi
Thu Sep 17, 2009 12:11 pm
Forum: Scripting Help
Topic: chanlist doesn't work on join event
Replies: 5
Views: 3887

chanlist doesn't work on join event

Hi there,

my problem is, that

Code: Select all

	set users [chanlist $channel]
	putlog [llength $users]
shows zero, when it's called in the join-bind procedure of the bot's join.

Even a utimer of 1 second, called in the join-handler procedure doesn't work

What can i do ?

Thanks for your help
by boehmi
Tue Aug 18, 2009 8:38 am
Forum: Scripting Help
Topic: Check if a user is inside a specific channel
Replies: 2
Views: 3027

Check if a user is inside a specific channel

As the title says i want to check if a nickname is inside a specific channel
but i have absolutely no idea how to do this or what i have to look for ;)

Can you help me?

Thank you
by boehmi
Mon May 25, 2009 1:19 am
Forum: Scripting Help
Topic: Bind: same proc, different arguments
Replies: 4
Views: 4450

Ah ok... i thougth the
  • version would overwrite the default parameters.

    Thanks a lot
by boehmi
Sun May 24, 2009 5:53 pm
Forum: Scripting Help
Topic: Bind: same proc, different arguments
Replies: 4
Views: 4450

thank you very much, but what if i additionally want to get the arguments?

e.g.
!test1 10
!test1 20
!test2 20

something like
bind pub - !test1 [list proc1 $args test1]
bind pub - !test2 [list proc1 $args "something else"]
by boehmi
Wed Apr 22, 2009 5:52 am
Forum: Scripting Help
Topic: Bind: same proc, different arguments
Replies: 4
Views: 4450

Bind: same proc, different arguments

Hi, is there a possibility for calling the same procedure with different arguments with bind pub? Like: bind pub "-|-" !test1 proc1 "test1" bind pub "-|-" !test2 proc1 "something else" bind pub "-|-" !test3 proc1 "lalala" Thanks for your help
by boehmi
Mon Apr 13, 2009 8:01 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable ?
Replies: 6
Views: 4708

in that case you must have a proc like this: proc give_answer { chan } { blah blah blah... } proc2 must take the chan argument as shown above. try it like that. yeah i did it like that... but the problem of my first post were the {} around the call. However now it's working with [list ..] Thank you...
by boehmi
Mon Apr 13, 2009 5:10 pm
Forum: Scripting Help
Topic: bind pub - * doesn't work
Replies: 3
Views: 3695

bind pub - * doesn't work

I already have another problem ;)

I want my bot to evaluate any string that is written to the channel with a procedure...
i used

Code: Select all

bind pub - * procedure
or
bind pub - "*" procedure
but he binds the string "*" to procedure and not the wildcard *

What's my mistake?
by boehmi
Mon Apr 13, 2009 1:20 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable ?
Replies: 6
Views: 4708

erm no... proc2 is not a part of proc1 proc1 is just called 1 line before ;) its for a little quizbot proc quiz_start { nick uhost hand chan args } { global quiz_status set quiz_status "started" sendmsg "PRIVMSG $chan :Quiz startet..." putlog "test" ask_question $chan u...
by boehmi
Mon Apr 13, 2009 12:20 pm
Forum: Scripting Help
Topic: can't read "chan": no such variable ?
Replies: 6
Views: 4708

can't read "chan": no such variable ?

Code: Select all

proc1 $chan
utimer 60 { proc2 $chan }
proc1 works correct... but the proc2-call within the {} throws the error can't read "chan": no such variable

Shouldn't $chan be valid inside a new {} block, just like in a do..while {} loop?

What is the problem?

Thanks for your help
by boehmi
Sun Apr 12, 2009 4:40 pm
Forum: Eggdrop Help
Topic: Putserv doesn't work correctly?
Replies: 4
Views: 3184

Awesome!
Thanks a lot
by boehmi
Sat Apr 11, 2009 6:48 pm
Forum: Eggdrop Help
Topic: Putserv doesn't work correctly?
Replies: 4
Views: 3184

ah thats it... thanks

and is there any possibility to boost reation time?
my bot is hosted on a 100mbit/s server but it still needs up to 4..5 seconds till he answers :/
although the notice in the telnet party line is shown nearly immediatly
by boehmi
Sat Apr 11, 2009 8:03 am
Forum: Eggdrop Help
Topic: Putserv doesn't work correctly?
Replies: 4
Views: 3184

Putserv doesn't work correctly?

Hi there, i just started to experiment with eggdrop... i wrote a little script: bind pub - !testme testme proc testme { nick uhost hand chan args } { putlog "$nick $args" putserv "PRIVMSG $chan : Hello world!" } It works, but if i write !testme 10 times in a short period of time,...