async def clear_data(): ok = warner.get_all_users_id() for s in ok: try: warner.rm_user(int(s)) await warnerstarkbot.send_message( int(s), "**Limit Has Been Reset , Generate Your Accounts Now !**") except: pass
async def reset(event): if event.sender_id != Config.OWNER_ID: print("A Non Owner Used This Cmd") return ok = warner.get_all_users_id() for s in ok: try: warner.rm_user(int(s)) await warnerstarkbot.send_message( int(s), "**Limit Has Been Reset , Generate Your Accounts Now !**") except: pass await event.reply("Reset Sucessfull Done!")