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

Add =vote

This commit is contained in:
RGBCube 2022-07-25 15:27:13 +03:00
parent 444595b685
commit 4185a5cf86

View file

@ -97,6 +97,20 @@ class MinecraftServer(
) )
await ctx.reply(view=view) await ctx.reply(view=view)
@commands.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.",
)
async def vote(self, ctx: commands.Context) -> None:
view = discord.ui.View()
view.add_item(
discord.ui.Button(
label="Vote for the Minecraft server!",
url="https://landsofminearchy.com/vote",
)
)
await ctx.reply(view=view)
@tasks.loop(minutes=5) @tasks.loop(minutes=5)
async def check_processes_up(self) -> None: async def check_processes_up(self) -> None:
pass pass