#bot not showing presence
1 messages · Page 1 of 1 (latest)
Hi, please resend your code without the bot token. THanks!
should probably regenerate it
@bot.event
async def on_ready():
print(f'Logged in as {bot.user}')
await change_presence() # Call change_presence when the bot is ready
async def change_presence():
while True: # Run indefinitely
print("Changing presence...")
activity1 = interactions.Activity(
type=interactions.ActivityType.WATCHING,
name="with interactions",
details="Café anime | Anime",
)
await bot.change_presence(activity=activity1)
print("Presence changed to WATCHING")
await asyncio.sleep(30) # Wait for 30 seconds
activity2 = interactions.Activity(
type=interactions.ActivityType.PLAYING,
name="with interactions",
details="ภєאยร/♔♢unlink🐺 is the best",
)
await bot.change_presence(activity=activity2)
print("Presence changed to PLAYING")
await asyncio.sleep(30) # Wait for 30 seconds
Start the bot outside of any async function
bot.start()
this is the code
should i used another libary for this