1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-29 09:57:46 +00:00

'Refactored by Sourcery'

This commit is contained in:
Sourcery AI 2022-06-06 08:58:44 +00:00
parent d2f19f0e8a
commit f9f557f79e
2 changed files with 4 additions and 3 deletions

2
bot.py
View file

@ -36,7 +36,7 @@ class MinearchyBot(commands.Bot):
super().__init__(
command_prefix="=",
owner_ids=set([512640455834337290]),
owner_ids={512640455834337290},
intents=intents,
case_insensitive=True,
allowed_mentions=discord.AllowedMentions.none(),

View file

@ -97,7 +97,7 @@ class Miscellanious(
for i, log in reversed(list(enumerate(logs))):
message, ts = log
embed.add_field(
name=str(i) + (" (latest)" if not i else ""),
name=str(i) + ("" if i else " (latest)"),
value=f"""
Author: {message.author.mention} (ID: {message.author.id}, Plain: {discord.utils.escape_markdown(str(message.author))})
Deleted at: <t:{ts}:F> (Relative: <t:{ts}:R>)
@ -105,10 +105,11 @@ class Miscellanious(
```
{message.content.replace('`', f'{zwsp}`{zwsp}')}
```
""", # zero-width spaces, or it will break.
""",
inline=False,
)
await ctx.reply(embed=embed)