0
What's wrong in this code
I'm creating a python bot for discord and I don't know what's the problem with this code : import discord from discord.ext import commands bot = commands.Bot (command_prefix='
#x27;, description='Hi' @bot.event async def on_ready(): print("logged in as") print(bot.user.name) @bot.command() async def hello(): await bot.say(Hello* bot.run('MzUzNjQ5NzE0MDAyMTMyOTkz.DIy2jg.t9SJMgaeP_nYigwKAK1rbLEkHt8')2 Respostas
+ 4
I'm not familiar with the discord module, but ...
import discord
from discord.ext import commands
bot = commands.Bot (command_prefix='#x27;, description='Hi'
# The line above doesn't appear to be finished. It's at the very least missing a closing )
@bot.event
async def on_ready():
print("logged in as")
print(bot.user.name)
@bot.command()
async def hello():
await bot.say(Hello* # <-- same here
bot.run('MzUzNjQ5NzE0MDAyMTMyOTkz.DIy2jg.t9SJMgaeP_nYigwKAK1rbLEkHt8')
+ 3
The code in your post is incomplete. Please check it and edit if you still need help.