Merge branch 'merge-fix' into 'main'
Merge fix See merge request stark-industries/j.a.r.v.i.s.!13
This commit is contained in:
commit
ad531cd805
1 changed files with 1 additions and 11 deletions
|
@ -35,7 +35,7 @@ jarvis = commands.Bot(
|
|||
)
|
||||
slash = SlashCommand(jarvis, sync_commands=True, sync_on_cog_reload=True)
|
||||
jarvis_self = Process()
|
||||
__version__ = "1.0.0"
|
||||
__version__ = "1.0.1"
|
||||
|
||||
|
||||
db = DBManager(get_config().mongo).mongo
|
||||
|
@ -194,25 +194,15 @@ async def on_message(message: Message):
|
|||
if autopurge:
|
||||
await message.delete(delay=autopurge["delay"])
|
||||
content = re.sub(r"\s+", "", message.content)
|
||||
<<<<<<< HEAD
|
||||
content = re.sub(r"[^\w\d./]+", "", content)
|
||||
match = invites.search(content)
|
||||
if match:
|
||||
=======
|
||||
content = re.sub(r"[^\w\s]", "", content)
|
||||
matches = invites.match(content)
|
||||
if matches:
|
||||
>>>>>>> d2cf3549ece5640fd7e215a75e12421c8f19fa10
|
||||
guild_invites = await message.guild.invites()
|
||||
allowed = [x.code for x in guild_invites] + [
|
||||
"dbrand",
|
||||
"VtgZntXcnZ",
|
||||
]
|
||||
<<<<<<< HEAD
|
||||
if match.group(6) not in allowed:
|
||||
=======
|
||||
if matches.group(6) not in allowed:
|
||||
>>>>>>> d2cf3549ece5640fd7e215a75e12421c8f19fa10
|
||||
await message.delete()
|
||||
db.jarvis.warns.insert_one(
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue