Add if __name__ == "__main__"
This commit is contained in:
parent
bf82306cf0
commit
406556e8cf
|
@ -82,9 +82,9 @@ class Music(commands.Cog):
|
|||
ctx.voice_client.stop()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
bot = commands.Bot(command_prefix=commands.when_mentioned_or("!"), description='Relatively simple music bot example')
|
||||
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
print(f"Logged in as {bot.user} ({bot.user.id})")
|
||||
|
|
Loading…
Reference in New Issue