Skip to content

Commit 594e0ff

Browse files
committed
Merge
2 parents 78ce754 + d98a1df commit 594e0ff

File tree

5 files changed

+8
-9
lines changed

5 files changed

+8
-9
lines changed

bot.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,7 @@ async def data_loop(self):
306306

307307
async def autoupdate_loop(self):
308308
while True:
309-
if not self.config.get('autoupdates'):
310-
print(self.config.get('autoupdates', 'none'))
309+
if self.config.get('disable_autoupdates'):
311310
await asyncio.sleep(3600)
312311
continue
313312

cogs/modmail.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -291,8 +291,7 @@ async def contact(self, ctx, *, user: discord.Member):
291291
@commands.has_permissions(manage_channels=True)
292292
async def blocked(self, ctx):
293293
"""Returns a list of blocked users"""
294-
em = discord.Embed(title='Blocked Users', color=discord.Color.green())
295-
em.description = ''
294+
em = discord.Embed(title='Blocked Users', color=discord.Color.green(), description='')
296295

297296
users = []
298297
not_reachable = []
@@ -381,7 +380,7 @@ async def unblock(self, ctx, id=None):
381380
await top_chan.edit(topic=topic)
382381

383382
em.title = 'Success'
384-
em.description = f'{mention} is no longer blocked'
383+
em.description = f'{mention} (`{mention.id}`) is no longer blocked'
385384

386385
await ctx.send(embed=em)
387386
else:

cogs/utility.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ async def update(self, ctx):
257257

258258
await ctx.send(embed=em)
259259

260-
@commands.command(name="status", aliases=['customstatus', 'presence'])
260+
@commands.command(name='status', aliases=['customstatus', 'presence'])
261261
@commands.has_permissions(administrator=True)
262262
async def _status(self, ctx, *, message):
263263
"""Set a custom playing status for the bot.
@@ -294,7 +294,7 @@ async def ping(self, ctx):
294294
@commands.has_permissions(administrator=True)
295295
async def mention(self, ctx, *, mention=None):
296296
"""Changes what the bot mentions at the start of each thread."""
297-
current = self.bot.config.get("mention", "@here")
297+
current = self.bot.config.get('mention', '@here')
298298
em = discord.Embed(
299299
title='Current text',
300300
color=discord.Color.green(),
@@ -305,7 +305,7 @@ async def mention(self, ctx, *, mention=None):
305305
await ctx.send(embed=em)
306306
else:
307307
em.title = 'Changed mention!'
308-
em.description = f'On thread creation the bot now says: {mention}'
308+
em.description = f'On thread creation the bot now says {mention}'
309309
self.bot.config['mention'] = mention
310310
await self.bot.config.update()
311311
await ctx.send(embed=em)

core/config.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66

77
class ConfigManager:
8+
"""Class that manages a cached configuration"""
89

910
def __init__(self, bot):
1011
self.bot = bot

core/paginator.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ async def show_page(self, index: int):
8181
await self.create_base(page)
8282

8383
def react_check(self, reaction, user):
84-
return user.id == self.ctx.author.id and reaction.emoji in self.reaction_map.keys()
84+
return reaction.message == self.base and user.id == self.ctx.author.id and reaction.emoji in self.reaction_map.keys()
8585

8686
async def run(self):
8787
if not self.running:

0 commit comments

Comments
 (0)