Skip to content

Commit 8877a1b

Browse files
committed
Merge from master
2 parents 8f7d020 + 586275d commit 8877a1b

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

cogs/modmail.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,11 +857,11 @@ async def blocked(self, ctx):
857857
pass
858858

859859
if users:
860-
em = embeds[-1]
860+
embed = embeds[-1]
861861

862862
for mention, reason in users:
863863
line = mention + f" - `{reason or 'No reason provided'}`\n"
864-
if len(em.description) + len(line) > 2048:
864+
if len(embed.description) + len(line) > 2048:
865865
embeds.append(
866866
discord.Embed(
867867
title="Blocked Users (Continued)",
@@ -870,7 +870,7 @@ async def blocked(self, ctx):
870870
)
871871
)
872872
else:
873-
em.description += line
873+
embed.description += line
874874
else:
875875
embeds[-1].description = "Currently there are no blocked users."
876876

cogs/utility.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,8 @@ async def sponsors(self, ctx):
311311
embeds = []
312312

313313
for elem in data:
314-
em = Embed.from_dict(elem["embed"])
315-
embeds.append(em)
314+
embed = Embed.from_dict(elem["embed"])
315+
embeds.append(embed)
316316

317317
random.shuffle(embeds)
318318

plugins/registry.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,5 +178,14 @@
178178
"title": "Get Stats",
179179
"icon_url": "https://image.flaticon.com/icons/png/512/117/117761.png",
180180
"thumbnail_url": "http://www.pngmart.com/files/7/Statistics-PNG-Clipart.png"
181-
}
181+
},
182+
"moderation": {
183+
"repository": "xPolar/modmail-plugins",
184+
"branch": "master",
185+
"description": "Moderate your server with Modmail, bring the Mod to Modmail!",
186+
"bot_version": "3.0.3",
187+
"title": "Moderate your server",
188+
"icon_url": "https://cdn.discordapp.com/attachments/539943767562780704/601485194196680704/wGFmzZq.png",
189+
"thumbnail_url": "https://cdn.discordapp.com/attachments/539943767562780704/601485194196680704/wGFmzZq.png"
190+
}
182191
}

0 commit comments

Comments
 (0)