When I use a print code line to show something on the console, it doesn’t show what I have it set to show.
Edit: I watched the tutorial on here about how to make a Discord bot, and followed through, (up to when it shows “We have logged in as Encourage Bot#0824”)
Hi, welcome. You need to show some code and more context, like what version of python, what terminal command are you typing, or I don’t think anyone can help.
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
if message.content.startswith('$Hello'):
await message.channel.send('Hello!')
client.run(os.getenv('TOKEN'))