Skip to content

Commit

Permalink
+ [ 5 files changed ] - Fixed anti-mute evasion
Browse files Browse the repository at this point in the history
  • Loading branch information
null2264 committed Aug 11, 2021
1 parent ff02a6b commit c88ce96
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 3.2.4

- [**Fixed**] Fixed anti-mute evasion

# 3.2.3

- [**Improved**] Merged `anime search` and `manga search` into 1 function
Expand Down
2 changes: 1 addition & 1 deletion core/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ class ziBot(commands.Bot):

# --- NOTE: Information about the bot
author: str = getattr(config, "author", "ZiRO2264#9999")
version: str = "`3.2.3` - `overhaul`"
version: str = "`3.2.4` - `overhaul`"
links: Dict[str, str] = getattr(
config,
"links",
Expand Down
2 changes: 1 addition & 1 deletion exts/info/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ def activity(x):
await ctx.try_reply(embed=e)

@commands.command(
aliases=("gi", "serverinfo", "si"),
aliases=("guild", "gi", "server", "serverinfo", "si"),
brief="Get guild's information",
)
@commands.cooldown(1, 5, commands.BucketType.user)
Expand Down
5 changes: 4 additions & 1 deletion exts/mod/mod.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,10 @@ async def handleMuteEvasion(self, member: discord.Member):

with suppress(MissingMuteRole):
# Attempt to remute mute evader
await self.doMute(None, member, "Mute evasion")
mutedRoleId = await self.bot.getGuildConfig(
member.guild.id, "mutedRole", "guildRoles"
)
await self.doMute(None, member, "Mute evasion", mutedRoleId=mutedRoleId)

# https://github.com/Rapptz/RoboDanny/blob/0992171592f1b92ad74fe2eb5cf2efe1e9a51be8/bot.py#L226-L281
async def resolveMemberIds(self, guild, member_ids):
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "Z3R0"
version = "3.2.3"
version = "3.2.4"
description = "A multi-purpose open source discord bot"
authors = ["null2264"]
license = "MPL-2.0"
Expand Down

0 comments on commit c88ce96

Please sign in to comment.