1
Fork 0
mirror of https://github.com/RGBCube/minearchy-bot synced 2025-07-27 08:57:46 +00:00
This commit is contained in:
RGBCube 2023-01-15 16:24:57 +03:00
parent c1eb216eb5
commit 4e5c4507c8
11 changed files with 952 additions and 945 deletions

View file

@ -93,7 +93,7 @@ class MinearchyBot(CommandsBot):
self.webhook_url, session = self.session, bot_token = self.token self.webhook_url, session = self.session, bot_token = self.token
) )
await self.load_extensions() await self.load_extensions()
await self.start(self.token, reconnect=True) await self.start(self.token)
try: try:
asyncio.run(runner()) asyncio.run(runner())

View file

@ -79,7 +79,9 @@ class Miscellaneous(
return return
await message.author.edit(nick = message.author.display_name[5:]) 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: async def setup(bot: MinearchyBot) -> None:

View file

@ -60,6 +60,7 @@ class Moderation(
await ctx.reply(f"Timed out {member.mention} for {time} {clean_time_name}.") await ctx.reply(f"Timed out {member.mention} for {time} {clean_time_name}.")
# noinspection GrazieInspection
@command( @command(
brief = "Sends the latest deleted messages.", brief = "Sends the latest deleted messages.",
help = ( help = (

View file

@ -88,7 +88,9 @@ class Utils(
deny.append(perm) deny.append(perm)
if allow or deny: 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:") perms.append(" permissions:")
for a in allow: for a in allow:
@ -200,7 +202,9 @@ class Utils(
deny.append(perm) deny.append(perm)
if allow or deny: 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:") string.append(" permissions:")
for a in allow: for a in allow:

View file

@ -8,5 +8,5 @@ T = TypeVar("T", bound=Callable)
def override(function: T) -> T: def override(function: T) -> T:
"""Basically Java's @Override annotation. Makes stuff less ambiguous.""" """Basically Javas @Override annotation. Makes stuff less ambiguous."""
return function return function