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 

Invite help

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


Joined: 22 Feb 2020
Posts: 393

PostPosted: Fri Jul 31, 2020 10:46 pm    Post subject: Invite help Reply with quote

Is it possible to make the bot check if a user has ~ (owner) or not without being on the channel?

Perhaps the bot could use /whois nick? it shows that way,

what i need is a user invites a bot to a channel with /msg bot join #channel, and the user inviting Must have ~ (owner) on that channel, otherwise the bot wont join.

Any Help apprecited Smile Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sat Aug 01, 2020 3:36 am    Post subject: Reply with quote

The simplest way imho:
The user invites bot, bot join.
Then, it checks the user and if it doesn't match the flag you need, the bot parts.
But I'm not sure the ~ flag is easily parsable

So the second way: as you said, do a /whois and wait for the raw 319, then check if it matches {$nick : .*~$chan.*}
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Sat Aug 01, 2020 8:52 am    Post subject: Reply with quote

I know about raw commands and such, but i am not fully sure how to do so Confused

Can you maybe create a small bit of it? and i can add onto it?

Would be super Cool Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sat Aug 01, 2020 11:50 am    Post subject: Reply with quote

You have an example of functionnal script @ https://gitlab.com/tcl-scripts/chan-access-filter/-/blob/master/chanaccessfilter.tcl

It makes /who (adapt to use /whois) and wait for raw 352 (adapt for raw 319)
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Tue Aug 18, 2020 11:10 am    Post subject: Reply with quote

Thanks CrazyCat Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
ComputerTech
Master


Joined: 22 Feb 2020
Posts: 393

PostPosted: Wed Nov 11, 2020 10:44 am    Post subject: Reply with quote

So yeah, i also found Thommeys tcl collection, http://thommey.tclhelp.net/?page=scripts


Arbitrary chanmodes (+q, +a), seems to have caught my eye, so it does isowner and such, seems perfect to my situation Very Happy
_________________
ComputerTech
Back to top
View user's profile Send private message Send e-mail Visit poster's website
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