Closed heqds closed 1 year ago
When using on_ready, it just doesn't print anything. My code works fine though.
I just wrote this:
@bot.event async def on_ready() print("Logged in and ready")
Then it printed nothing.
import discord from discord.ext import commands OWNER_ID = config['OWNER_ID'] PREFIX = config['PREFIX'] TOKEN = config['TOKEN'] bot = commands.Bot(command_prefix=PREFIX, owner_id=OWNER_ID, self_bot=True) @bot.event async def on_ready(): print('Logged in and ready') @bot.command() async def test(ctx) await ctx.send("test") bot.run(TOKEN)
It is expected to print out "Logged in and ready" when it logs into the account.
It is not printing it.
I have the newest ver of discord.py-self and no other forks or discord installed
No response
"The newest version" means nothing. There are instructions on what to put in the System Information field. Please follow them.
Closing due to lack of activity.
Summary
When using on_ready, it just doesn't print anything. My code works fine though.
Reproduction Steps
I just wrote this:
@bot.event async def on_ready() print("Logged in and ready")
Then it printed nothing.
Code
Expected Results
It is expected to print out "Logged in and ready" when it logs into the account.
Actual Results
It is not printing it.
System Information
I have the newest ver of discord.py-self and no other forks or discord installed
Checklist
Additional Information
No response