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')

11th Sep 2017, 12:00 AM
►► Ferontwix ◄◄
►► Ferontwix ◄◄ - avatar
2 Réponses
+ 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')
11th Sep 2017, 1:40 AM
ChaoticDawg
ChaoticDawg - avatar
+ 3
The code in your post is incomplete. Please check it and edit if you still need help.
11th Sep 2017, 12:43 AM
ChaoticDawg
ChaoticDawg - avatar