Answer the question
In order to leave comments, you need to log in
Discord.py bot won't start, how can I fix it?
import discord
from discord.ext import commands
token = "token"
bot = commands.Bot(command_prefix='-')
@bot.event
async def on_ready():
print('here')
@bot.command(pass_context=True)
async def hi(ctx):
await ctx.send('hi')
bot.run(token)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question