diff --git a/cogs/common.py b/cogs/common.py index e097dc4..6b1a2f3 100644 --- a/cogs/common.py +++ b/cogs/common.py @@ -146,6 +146,8 @@ class Common: if response.status == 200: result_json = await response.json() return f"{instance}{result_json['key']}" + else: + return f"Error {response.status}: {response.text}" async def async_call_shell(self, shell_command: str, inc_stdout=True, inc_stderr=True): diff --git a/cogs/logs.py b/cogs/logs.py index 817238a..3e18a24 100644 --- a/cogs/logs.py +++ b/cogs/logs.py @@ -81,7 +81,7 @@ class Logs: log_channel = self.bot.get_channel(config.log_channel) msg = "📝 **Message edit**: \n"\ f"from {self.bot.escape_message(after.author.name)} "\ - f"({after.author.id})\n"\ + f"({after.author.id}), in {after.channel.mention}:\n"\ f"`{before.clean_content}` → `{after.clean_content}`" # If resulting message is too long, upload to hastebin @@ -99,7 +99,8 @@ class Logs: log_channel = self.bot.get_channel(config.log_channel) msg = "🗑️ **Message delete**: \n"\ f"from {self.bot.escape_message(message.author.name)} "\ - f"({message.author.id})\n `{message.clean_content}`" + f"({message.author.id}), in {message.channel.mention}:\n"\ + f"`{message.clean_content}`" # If resulting message is too long, upload to hastebin if len(msg) > 2000: