online_users = [1234567890] # List of Discord IDs who can wake up the bot sleep_users = [9876543210] # List of Discord IDs who can make the bot sleep @bot.command() async def online(ctx): if ctx.author.id not in online_users: await ctx.send("You don't have permission to wake the bot up.") return await ctx.send("Bot is now online and operational!") @bot.command() async def sleep(ctx): if ctx.author.id not in sleep_users: await ctx.send("You don't have permission to put the bot to sleep.") return await ctx.send("Bot is now sleeping. Only authorized users can wake it up.") await bot.close() # Disconnects the bot