mirror of
https://github.com/nexy7574/LCC-bot.git
synced 2024-09-20 02:26:32 +01:00
auto-mute matthew
This commit is contained in:
parent
c0b9188be1
commit
7d099bb452
1 changed files with 4 additions and 3 deletions
|
@ -4,6 +4,7 @@ import os
|
||||||
import random
|
import random
|
||||||
import re
|
import re
|
||||||
import textwrap
|
import textwrap
|
||||||
|
from datetime import timedelta
|
||||||
|
|
||||||
import dns.resolver
|
import dns.resolver
|
||||||
from dns import asyncresolver
|
from dns import asyncresolver
|
||||||
|
@ -611,9 +612,9 @@ class OtherCog(commands.Cog):
|
||||||
window_width = max(min(1080 * 6, window_width), 1080 // 6)
|
window_width = max(min(1080 * 6, window_width), 1080 // 6)
|
||||||
window_height = max(min(1920 * 6, window_height), 1920 // 6)
|
window_height = max(min(1920 * 6, window_height), 1920 // 6)
|
||||||
await ctx.defer()
|
await ctx.defer()
|
||||||
# if ctx.user.id == 1019233057519177778:
|
if ctx.user.id == 1019233057519177778 and ctx.me.guild_permissions.moderate_members:
|
||||||
# if getattr(self.bot, "ALLOW_MATTHEW", False) is False:
|
if ctx.user.communication_disabled_until is None:
|
||||||
# return await ctx.respond("No.")
|
await ctx.user.timeout_for(timedelta(minutes=2), reason="no")
|
||||||
url = urlparse(url)
|
url = urlparse(url)
|
||||||
if not url.scheme:
|
if not url.scheme:
|
||||||
if "/" in url.path:
|
if "/" in url.path:
|
||||||
|
|
Loading…
Reference in a new issue