Skip to content

Commit 31c2c07

Browse files
committed
Switch to the new features in the current dev branch
1 parent 7a24b64 commit 31c2c07

File tree

2 files changed

+3
-19
lines changed

2 files changed

+3
-19
lines changed

bot.py

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -829,25 +829,9 @@ async def process_commands(self, message):
829829

830830
thread = await self.threads.find(channel=ctx.channel)
831831
if thread is not None:
832-
try:
833-
reply_without_command = strtobool(
834-
self.config["reply_without_command"]
835-
)
836-
except ValueError:
837-
reply_without_command = self.config.remove("reply_without_command")
838-
839-
try:
840-
anon_reply_without_command = strtobool(
841-
self.config["anon_reply_without_command"]
842-
)
843-
except ValueError:
844-
anon_reply_without_command = self.config.remove(
845-
"anon_reply_without_command"
846-
)
847-
848-
if anon_reply_without_command:
832+
if self.config.get("anon_reply_without_command"):
849833
await thread.reply(message, anonymous=True)
850-
elif reply_without_command:
834+
elif self.config.get("reply_without_command"):
851835
await thread.reply(message)
852836
else:
853837
await self.api.append_log(message, type_="internal")

cogs/modmail.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -721,7 +721,7 @@ async def logs_responded(self, ctx, *, user: User = None):
721721

722722
if not embeds:
723723
embed = discord.Embed(
724-
color=discord.Color.red(),
724+
color=self.bot.error_color,
725725
description=f"{getattr(user, 'mention', user.id)} has not responded to any threads.",
726726
)
727727
return await ctx.send(embed=embed)

0 commit comments

Comments
 (0)