Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[captcha] Create captcha cog #50

Closed
12 tasks done
calebj opened this issue Mar 16, 2018 · 6 comments
Closed
12 tasks done

[captcha] Create captcha cog #50

calebj opened this issue Mar 16, 2018 · 6 comments

Comments

@calebj
Copy link
Owner

calebj commented Mar 16, 2018

As per Cog-Creators/Cog-Board#100

Planned features:

  • per-server config:
    • designated captcha channel
    • challenge generator, length and charset
    • approval or pending role modes
      • automatically challenge when role is manually added?
    • option to challenge on join, or just manually
    • timeout (kick upon expiration)
  • plaintext, captcha and wheezy.captcha generators
  • user request of new challenge (with cooldown)
  • moderator manual and batch approval
  • no challenge for bots

Stretch goal(s):

  • automatically unapprove command or link spammers possible via exposed API
@calebj calebj self-assigned this Mar 16, 2018
@skeith
Copy link
Contributor

skeith commented Mar 16, 2018

Since the original requester is MIA, I am willing to add $10 bounty if you can make it force captcha (make them added to non-approved / not-trusted role which can not see all other channel but one) on users that spam commands and/or spam links

If this idea is inefficient, please let me know

@calebj
Copy link
Owner Author

calebj commented Mar 16, 2018

That's a good idea, but perhaps detecting spammers is a bit beyond the scope of this cog specifically. If there's already a cog out there that does what you want, but reacts by other means like a kick or ban (e.g. mentionspam in core mod), I can probably modify it to connect with this one.

@skeith
Copy link
Contributor

skeith commented Mar 16, 2018

Unfortunately, I don't know such cog yet

update:
What if I change the bounty for making Guild Temperature cog (idea initially said by Kowlin back then).
Raise the temperature of a guild in case of suspicious activity and when the temp reaching a certain level, locks out the server, disabling invites and reporting suspicious users based on their activity

I know, this is a general and vague idea

@calebj
Copy link
Owner Author

calebj commented Mar 16, 2018

Yeah, that's the scope of a separate cog. Though I'll be sure to build in the ability to trigger an (un)approval from outside the cog.

calebj added a commit that referenced this issue Jul 9, 2018
@calebj
Copy link
Owner Author

calebj commented Jul 9, 2018

This is in the devlop branch, but I'll wait until I deem it fully stable to merge into master and close this.

@skeith there is an API for triggering a challenge. It's as simple as:

await self.bot.get_cog('Captcha').challenge(bad_member)

from another cog, assuming the cog is loaded. If captcha is enabled in the server, it'll clear their role and act as if they're a new member.

calebj added a commit that referenced this issue Jul 10, 2018
calebj added a commit that referenced this issue Jul 13, 2018
calebj added a commit that referenced this issue Jul 16, 2018
@calebj calebj added v2 and removed v2 labels Jul 22, 2018
calebj added a commit that referenced this issue Jul 24, 2018
calebj added a commit that referenced this issue Jul 24, 2018
calebj added a commit that referenced this issue Jul 24, 2018
@calebj
Copy link
Owner Author

calebj commented Jul 29, 2018

Just a status update for anyone watching: this is still blocked by Cog-Creators/Red-DiscordBot#1927.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants