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 Responds to OPs but not to Founder

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


Joined: 10 Oct 2009
Posts: 3

PostPosted: Sat Oct 10, 2009 7:20 am    Post subject: Bot Responds to OPs but not to Founder Reply with quote

hello to everyone,
I am new in IRC/Eggdrop Scene Smile, 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:

######## 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 Smile
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Sat Oct 10, 2009 3:26 pm    Post subject: Reply with quote

Quote:
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?
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
kintaro
Voice


Joined: 10 Oct 2009
Posts: 3

PostPosted: Mon Oct 12, 2009 4:03 am    Post subject: Reply with quote

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

Greetings Kintaro
Back to top
View user's profile Send private message
DjSlash
Voice


Joined: 29 Jul 2009
Posts: 8
Location: Groningen, Netherlands

PostPosted: Mon Oct 12, 2009 7:15 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message Visit poster's website
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Mon Oct 12, 2009 8:38 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
kintaro
Voice


Joined: 10 Oct 2009
Posts: 3

PostPosted: Mon Oct 12, 2009 11:00 am    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
TCL_no_TK
Owner


Joined: 25 Aug 2006
Posts: 509
Location: England, Yorkshire

PostPosted: Mon Oct 12, 2009 1:04 pm    Post subject: Reply with quote

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.
_________________
TCL the misunderstood
Back to top
View user's profile Send private message Send e-mail
arfer
Master


Joined: 26 Nov 2004
Posts: 436
Location: Manchester, UK

PostPosted: Tue Oct 13, 2009 8:00 am    Post subject: Reply with quote

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
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