mirror of
https://github.com/RGBCube/minearchy-bot
synced 2025-07-27 08:57:46 +00:00
Add =vote
This commit is contained in:
parent
444595b685
commit
4185a5cf86
1 changed files with 14 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue