mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
Reformat
This commit is contained in:
parent
c1eb216eb5
commit
4e5c4507c8
11 changed files with 952 additions and 945 deletions
|
@ -14,16 +14,16 @@ if TYPE_CHECKING:
|
|||
|
||||
class MinecraftServer(
|
||||
Cog,
|
||||
name="Minecraft Server",
|
||||
description="Utilities for the Minecraft server.",
|
||||
name = "Minecraft Server",
|
||||
description = "Utilities for the Minecraft server.",
|
||||
):
|
||||
def __init__(self, bot: MinearchyBot) -> None:
|
||||
self.bot = bot
|
||||
|
||||
@commands.group(
|
||||
invoke_without_command=True,
|
||||
brief="Sends the server IP.",
|
||||
help="Sends the server IP.",
|
||||
invoke_without_command = True,
|
||||
brief = "Sends the server IP.",
|
||||
help = "Sends the server IP.",
|
||||
)
|
||||
async def ip(self, ctx: Context) -> None:
|
||||
await ctx.reply(
|
||||
|
@ -32,8 +32,8 @@ class MinecraftServer(
|
|||
)
|
||||
|
||||
@ip.command(
|
||||
brief="Sends the Java edition IP.",
|
||||
help="Sends the Java edition IP."
|
||||
brief = "Sends the Java edition IP.",
|
||||
help = "Sends the Java edition IP."
|
||||
)
|
||||
async def java(self, ctx: Context) -> None:
|
||||
await ctx.reply(
|
||||
|
@ -42,8 +42,8 @@ class MinecraftServer(
|
|||
)
|
||||
|
||||
@ip.command(
|
||||
brief="Sends the Bedrock edition IP.",
|
||||
help="Sends the Bedrock edition IP.",
|
||||
brief = "Sends the Bedrock edition IP.",
|
||||
help = "Sends the Bedrock edition IP.",
|
||||
)
|
||||
async def bedrock(self, ctx: Context) -> None:
|
||||
await ctx.reply(
|
||||
|
@ -53,8 +53,8 @@ class MinecraftServer(
|
|||
)
|
||||
|
||||
@command(
|
||||
brief="Shows information about the Minecraft server.",
|
||||
help="Shows the total player count, the Minecraft server IP and the server latency.",
|
||||
brief = "Shows information about the Minecraft server.",
|
||||
help = "Shows the total player count, the Minecraft server IP and the server latency.",
|
||||
)
|
||||
async def status(self, ctx: Context) -> None:
|
||||
status = await self.bot.server.status()
|
||||
|
@ -68,97 +68,97 @@ class MinecraftServer(
|
|||
await ctx.reply(message)
|
||||
|
||||
@command(
|
||||
brief="Sends the link to the wiki.",
|
||||
help="Sends the link to the wiki."
|
||||
brief = "Sends the link to the wiki.",
|
||||
help = "Sends the link to the wiki."
|
||||
)
|
||||
async def wiki(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Go to the wiki!",
|
||||
url="https://landsofminearchy.com/wiki",
|
||||
label = "Go to the wiki!",
|
||||
url = "https://landsofminearchy.com/wiki",
|
||||
)
|
||||
)
|
||||
await ctx.reply(view=view)
|
||||
await ctx.reply(view = view)
|
||||
|
||||
@command(
|
||||
brief="Sends the link to the store.",
|
||||
help="Sends the link to the store.",
|
||||
brief = "Sends the link to the store.",
|
||||
help = "Sends the link to the store.",
|
||||
)
|
||||
async def store(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Go to the store!",
|
||||
url="https://landsofminearchy.com/store",
|
||||
label = "Go to the store!",
|
||||
url = "https://landsofminearchy.com/store",
|
||||
)
|
||||
)
|
||||
await ctx.reply(view=view)
|
||||
await ctx.reply(view = view)
|
||||
|
||||
@command(
|
||||
aliases=("forums",),
|
||||
brief="Sends the link to the forum.",
|
||||
help="Sends the link to the forum.",
|
||||
aliases = ("forums",),
|
||||
brief = "Sends the link to the forum.",
|
||||
help = "Sends the link to the forum.",
|
||||
)
|
||||
async def forum(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Go to the forum!",
|
||||
url="https://landsofminearchy.com/forum",
|
||||
label = "Go to the forum!",
|
||||
url = "https://landsofminearchy.com/forum",
|
||||
)
|
||||
)
|
||||
await ctx.reply(view=view)
|
||||
await ctx.reply(view = view)
|
||||
|
||||
@command(
|
||||
aliases=("map",),
|
||||
brief="Sends the link to the dynmap.",
|
||||
help="Sends the link to the dynmap.",
|
||||
aliases = ("map",),
|
||||
brief = "Sends the link to the dynmap.",
|
||||
help = "Sends the link to the dynmap.",
|
||||
)
|
||||
async def dynmap(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Go to the dynmap!",
|
||||
url="https://landsofminearchy.com/dynmap",
|
||||
label = "Go to the dynmap!",
|
||||
url = "https://landsofminearchy.com/dynmap",
|
||||
)
|
||||
)
|
||||
await ctx.reply(
|
||||
content="The dynmap is an interactive, live map of our Minecraft server.", view=view
|
||||
content = "The dynmap is an interactive, live map of our Minecraft server.", view = view
|
||||
)
|
||||
|
||||
@command(
|
||||
brief="Sends the links you can use to vote for the Minecraft server.",
|
||||
help="Sends the links you can use to vote for the Minecraft server.",
|
||||
brief = "Sends the links you can use to vote for the Minecraft server.",
|
||||
help = "Sends the links you can use to vote for the Minecraft server.",
|
||||
)
|
||||
async def vote(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Vote for the Minecraft server!",
|
||||
url="https://landsofminearchy.com/vote",
|
||||
label = "Vote for the Minecraft server!",
|
||||
url = "https://landsofminearchy.com/vote",
|
||||
)
|
||||
)
|
||||
await ctx.reply(view=view)
|
||||
await ctx.reply(view = view)
|
||||
|
||||
@command(
|
||||
name="staff-application",
|
||||
aliases=(
|
||||
name = "staff-application",
|
||||
aliases = (
|
||||
"apply",
|
||||
"staff-applications",
|
||||
),
|
||||
brief="Sends the link to the staff application.",
|
||||
help="Sends the link to the staff application.",
|
||||
brief = "Sends the link to the staff application.",
|
||||
help = "Sends the link to the staff application.",
|
||||
)
|
||||
async def staff_application(self, ctx: Context) -> None:
|
||||
view = View()
|
||||
view.add_item(
|
||||
Button(
|
||||
label="Apply for staff!",
|
||||
url="https://docs.google.com/forms/d/1I7Rh_e-ZTXm5L51XoKZsOAk7NAJcHomUUCuOlQcARvY/viewform",
|
||||
label = "Apply for staff!",
|
||||
url = "https://docs.google.com/forms/d/1I7Rh_e-ZTXm5L51XoKZsOAk7NAJcHomUUCuOlQcARvY/viewform",
|
||||
)
|
||||
)
|
||||
await ctx.reply(view=view)
|
||||
await ctx.reply(view = view)
|
||||
|
||||
|
||||
async def setup(bot: MinearchyBot) -> None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue