import discord
from discord.ext import commands
import json

client = commands.Bot(command_prefix="+")

@client.event
async def on_ready():
    print(" ")
    print("-------------------------------")
    print("Bot Online")
    print('Logged In As: ',client.user.name)
    print('ID: ',client.user.id)
    print('Discord Version: ',discord.__version__)
    print('-------------------------------')
    print(" ")
    print(" ")
    await client.change_presence(activity=discord.Game(name="chess"))

@client.command()
async def globalleaderboards(ctx):
    await ctx.send("https://www.chess.com/players")

@client.command()
async def chessrules(ctx):
    await ctx.send("https://www.chess.com/learn-how-to-play-chess")

with open("token.json", "r") as f:
    data = json.load(f)
Token = data['Token']
f.close()
client.run(Token)