| View previous topic :: View next topic |
| Author |
Message |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Fri Jul 31, 2020 10:46 pm Post subject: Invite help |
|
|
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  _________________ ComputerTech |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
Posted: Sat Aug 01, 2020 3:36 am Post subject: |
|
|
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 |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Sat Aug 01, 2020 8:52 am Post subject: |
|
|
I know about raw commands and such, but i am not fully sure how to do so
Can you maybe create a small bit of it? and i can add onto it?
Would be super Cool  _________________ ComputerTech |
|
| Back to top |
|
 |
CrazyCat Revered One

Joined: 13 Jan 2002 Posts: 1032 Location: France
|
|
| Back to top |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Tue Aug 18, 2020 11:10 am Post subject: |
|
|
Thanks CrazyCat  _________________ ComputerTech |
|
| Back to top |
|
 |
ComputerTech Master

Joined: 22 Feb 2020 Posts: 393
|
Posted: Wed Nov 11, 2020 10:44 am Post subject: |
|
|
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  _________________ ComputerTech |
|
| Back to top |
|
 |
|