Help getting my Discord.py bot running


#1

Hello I’m trying to create a bot that gets a table with the damage done of a log, I tried the following:

import discord
import requests

TOKEN = // My bot token
api_key = /My WarcraftLog key
client = discord.Client()

@client.event
async def on_ready():
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')


@client.event
async  def  on_message(message):
if message.author == client.user:
    return
if message.content.startswith('!log'):
    requests.get("https://www.warcraftlogs.com/v1/report/tables/damage-done/p2hdgxLAVnv7yfrb?api_key=" + api_key)

client.run(TOKEN)

The script compiles but when I do !log the bots does nothing, what else do I need to make this works? Also what result should I expect? The bot creating a table designed like the warcraftlog original? What more do I need?

Thanks, need a lot of help