Disabled info command

This commit is contained in:
victormylle 2020-11-29 18:19:15 +01:00
parent b59f122957
commit f5010a9a51

View File

@ -2,6 +2,7 @@ import discord
from discord.ext import commands
from mcstatus import MinecraftServer
class ServerInfo(commands.Cog):
def __init__(self, client):
self.client = client
@ -17,12 +18,14 @@ class ServerInfo(commands.Cog):
embed.set_author(name="Info")
embed.colour = discord.Colour.orange()
embed.add_field(name="Ip", value=f"play.worldcraft.us", inline=False)
embed.add_field(name="Dynmap", value=f"https://map.worldcraft.us/", inline=False)
embed.add_field(name="Online", value=f"There are **{server.status().players.online}** players online!", inline=False)
embed.add_field(
name="Dynmap", value=f"https://map.worldcraft.us/", inline=False)
embed.add_field(
name="Online", value=f"There are **{server.status().players.online}** players online!", inline=False)
await ctx.send(embed=embed)
def setup(client):
client.add_cog(ServerInfo(client))
# client.add_cog(ServerInfo(client))
pass