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.

Bot Responds to OPs but not to Founder

Help for those learning Tcl or writing their own scripts.
Post Reply
k
kintaro
Voice
Posts: 3
Joined: Sat Oct 10, 2009 6:49 am

Bot Responds to OPs but not to Founder

Post by kintaro »

hello to everyone,
I am new in IRC/Eggdrop Scene :), and i have a little problem with a TLC-Script. When i call eggrop with "pfeif" as a Operator, Responds the Bot:
"*sofort zum Meister $nick rennt und die nächste Order abwartet*" in the Channel...
But if I do this as a founder of the bot does not respond to the command.

I have the code with "if isowner" and "if isfounder" but none of the commands worked, how can I move on to the bot operators and Founder hear?

Here is my Code:

Code: Select all

######## pfeif ######### 
bind pubm - *pfeif* pub_pfeif 
proc pub_pfeif {nick uhost hand chan arg} { 
if {![isop $nick $chan]} { 
puthelp "NOTICE $nick : Ich hör nur, wenn der Meister pfeift!" 
return 0} 
putchan $chan "\002 *sofort zum Meister $nick rennt und die nächste Order abwartet*" 
putchan $chan "\002 Da bin ich $nick." 
}
Many thanks in advance ...
Greetings Kintaro

PS: Sorry for my bad english, i am from Switzerland :)
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

have the code with "if isowner" and "if isfounder" but none of the commands worked, how can I move on to the bot operators and Founder hear?
Eggdrio dosen't have any isfounder or isowner.

Are you talking about Channel Status (modes) like +q? or something to do with Channel Services?
k
kintaro
Voice
Posts: 3
Joined: Sat Oct 10, 2009 6:49 am

Post by kintaro »

i have installed the Anope Services, Anope gives me Automaticly the +q Status...

Greetings Kintaro
D
DjSlash
Voice
Posts: 8
Joined: Wed Jul 29, 2009 7:12 am
Location: Groningen, Netherlands
Contact:

Post by DjSlash »

Eggdrop doesn't have a standard command that tell you if a channeluser has +q set. As far as I know, as long your ircd doesn't support it, you can't tell what extra modes a user has besides +o/+h/+v.
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

I'm not at all sure about how anope services functions but for some networks you can get the bot to send a /cs info #channelname

The notice response from chanserv is then captured, which can tell you the channel founder or if the channel is unregistered.

This is somewhat more difficult to code than having a simple direct Eggdrop Tcl command available such as 'isop', 'ishalfop' or 'isvoice'.
I must have had nothing to do
k
kintaro
Voice
Posts: 3
Joined: Sat Oct 10, 2009 6:49 am

Post by kintaro »

So there is no command for the mode q, but it would be theoretically possible that the bot will respond to a command such as "if is mode q"? If so, how would the correct syntax for this?

Sorry for these questions, I'm fairly new to matters bots, and my English is not so good ... : (

Greetings Kintaro
User avatar
TCL_no_TK
Owner
Posts: 509
Joined: Fri Aug 25, 2006 7:05 pm
Location: England, Yorkshire

Post by TCL_no_TK »

kintaro wrote:So there is no command for the mode q, but it would be theoretically possible that the bot will respond to a command such as "if is mode q"? If so, how would the correct syntax for this?

Sorry for these questions, I'm fairly new to matters bots, and my English is not so good ... : (

Greetings Kintaro
No There is not.
User avatar
arfer
Master
Posts: 436
Joined: Fri Nov 26, 2004 8:45 pm
Location: Manchester, UK

Post by arfer »

Look in your bot installation doc/html subdirectory for tcl-commands.html

What you see is what you get (this is in addition to Core Tcl commands of course)

You can't simply invent Tcl commands because they seem to suit your needs, though you could possibly code them if you know Tcl well enough.
I must have had nothing to do
Post Reply