Ask coding questions

← Back to all posts
Why does this code not work
ChristianColli2

import discord
import os

client = discord.Client()

@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))

@client.event
async def on_message(message):
if message.author == client.user:
return

client.run(os.getenv('TOKEN'))

Voters
ChristianColli2