diff --git a/cogs/core.py b/cogs/core.py index a46986f2..8d1a834c 100644 --- a/cogs/core.py +++ b/cogs/core.py @@ -131,7 +131,7 @@ async def close_channel(self, ctx, reason, anon: bool = False): if not message.embeds[0].author.name: author = f"{' '.join(message.embeds[0].footer.text.split()[:-2])} (User)" elif message.embeds[0].author.name.endswith(" (Anonymous)"): - author = f"{message.embeds[0].author.name[:-12]} (Staff)" + author = f"{message.embeds[0].author.name}" else: author = f"{message.embeds[0].author.name} (Staff)" diff --git a/web/pages/logs/_id.vue b/web/pages/logs/_id.vue index 98700755..597d538c 100644 --- a/web/pages/logs/_id.vue +++ b/web/pages/logs/_id.vue @@ -78,6 +78,11 @@ export default { color: #ff4500; } +.log-anonymous { + font-weight: bold; + color: #e01929; +} + .log-user { font-weight: bold; color: #0f0; diff --git a/web/src/routes/logs.rs b/web/src/routes/logs.rs index 7cc7d8b9..dff4e426 100644 --- a/web/src/routes/logs.rs +++ b/web/src/routes/logs.rs @@ -20,7 +20,7 @@ lazy_static! { static ref CLIENT: Client = Client::new(CONFIG.bot_token.as_str()); static ref RUNTIME: Runtime = Runtime::new().unwrap(); static ref RE: Regex = - Regex::new(r"^\[([0-9-]{10} [0-9:]{8})\] ([^\n]*)#([0-9]{1,4}) \((User|Staff|Comment)\):") + Regex::new(r"^\[([0-9-]{10} [0-9:]{8})\] ([^\n]*)#([0-9]{1,4}) \((User|Staff|Comment|Anonymous)\):") .unwrap(); }