I SAID DED-BUGGING!
This commit is contained in:
parent
222df6be14
commit
c07a62c343
@ -34,11 +34,13 @@ class Recruitment(commands.Cog):
|
|||||||
self.antispam[guild_id] = AntiSpam([(5, 5), (30, 10), (300, 20)])
|
self.antispam[guild_id] = AntiSpam([(5, 5), (30, 10), (300, 20)])
|
||||||
|
|
||||||
antispam = self.antispam[guild_id]
|
antispam = self.antispam[guild_id]
|
||||||
if antispam.spammy(ctx):
|
antispam.update(ctx)
|
||||||
|
if antispam.spam_count:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|
||||||
@commands.guild_only()
|
@commands.guild_only()
|
||||||
@checks.admin_or_permissions(manage_guild=True)
|
@checks.admin_or_permissions(manage_guild=True)
|
||||||
@commands.group(name="setapplicationschannel", pass_context=True, no_pm=True)
|
@commands.group(name="setapplicationschannel", pass_context=True, no_pm=True)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user