Answer the question
In order to leave comments, you need to log in
Why doesn't it start?
# IMPORTS
import discord
import json
import command
from discord.ext import commands
#PREFIX
bot = commands.Bot(command_prefix=".")
with open("info.json") as f:
data = json.load(f)
token = data["Token"]
# START
@bot.event
async def on_ready():
print('Logged on as!')
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name=". help"))
# HELP
bot.remove_command("help")
@bot.command(command/help.py)
# PROFILE
bot.remove_command("profile")
@bot.command(command/profile.py)
#RUN
bot.run(token)
File "C:\Users\User\Desktop\himpe.py\hinpe.py", line 29
bot.run(token)
^
SyntaxError: invalid syntax
Answer the question
In order to leave comments, you need to log in
# HELP
bot.remove_command("help")
@bot.command(command/help.py)
# PROFILE
bot.remove_command("profile")
@bot.command(command/profile.py)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question