mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 00:47:44 +00:00
Reformat
This commit is contained in:
parent
c1eb216eb5
commit
4e5c4507c8
11 changed files with 952 additions and 945 deletions
|
@ -93,7 +93,7 @@ class MinearchyBot(CommandsBot):
|
|||
self.webhook_url, session = self.session, bot_token = self.token
|
||||
)
|
||||
await self.load_extensions()
|
||||
await self.start(self.token, reconnect=True)
|
||||
await self.start(self.token)
|
||||
|
||||
try:
|
||||
asyncio.run(runner())
|
||||
|
|
|
@ -79,7 +79,9 @@ class Miscellaneous(
|
|||
return
|
||||
|
||||
await message.author.edit(nick = message.author.display_name[5:])
|
||||
await message.channel.send(f"Welcome back {message.author.mention}! I've unset your AFK status.")
|
||||
await message.channel.send(
|
||||
f"Welcome back {message.author.mention}! I've unset your AFK status."
|
||||
)
|
||||
|
||||
|
||||
async def setup(bot: MinearchyBot) -> None:
|
||||
|
|
|
@ -60,6 +60,7 @@ class Moderation(
|
|||
|
||||
await ctx.reply(f"Timed out {member.mention} for {time} {clean_time_name}.")
|
||||
|
||||
# noinspection GrazieInspection
|
||||
@command(
|
||||
brief = "Sends the latest deleted messages.",
|
||||
help = (
|
||||
|
|
|
@ -88,7 +88,9 @@ class Utils(
|
|||
deny.append(perm)
|
||||
|
||||
if allow or deny:
|
||||
perms.append(f" {typ} `{name}`: {thing.id if name != '@everyone' else ''}")
|
||||
perms.append(
|
||||
f" {typ} `{name}`: {thing.id if name != '@everyone' else ''}"
|
||||
)
|
||||
perms.append(" permissions:")
|
||||
|
||||
for a in allow:
|
||||
|
@ -200,7 +202,9 @@ class Utils(
|
|||
deny.append(perm)
|
||||
|
||||
if allow or deny:
|
||||
string.append(f" {typ} `{name}`: {thing.id if name != '@everyone' else ''}")
|
||||
string.append(
|
||||
f" {typ} `{name}`: {thing.id if name != '@everyone' else ''}"
|
||||
)
|
||||
string.append(" permissions:")
|
||||
|
||||
for a in allow:
|
||||
|
|
|
@ -8,5 +8,5 @@ T = TypeVar("T", bound=Callable)
|
|||
|
||||
|
||||
def override(function: T) -> T:
|
||||
"""Basically Java's @Override annotation. Makes stuff less ambiguous."""
|
||||
"""Basically Javas @Override annotation. Makes stuff less ambiguous."""
|
||||
return function
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue