async def on_reaction_add(reaction, user): if user.bot: return if not str(reaction) in GOOD_BAD + EMOJI_STRS: return if not str(user.top_role) in "botmin verifier": return channel = bot.get_channel(reaction.message.channel.id) content = reaction.message.content if content.startswith("1. "): split_ = content.split("\n") try: index = split_[RANGE_DICT[str(reaction)]] except IndexError: return await channel.send("apoco si pa") request_id = index.split("-")[-1].strip() return await channel.send(db.verify_request(request_id)) item_id = get_id_from_discord(content) if content.startswith("Added") and str(reaction) == GOOD_BAD[1]: return await channel.send(db.remove_request(item_id)) if content.startswith("Possible NSFW") and str(reaction) == GOOD_BAD[0]: return await channel.send(db.verify_request(item_id))
async def on_reaction_add(reaction, user): if user.bot or not str(reaction) in GOOD_BAD or "botmin" != str( user.top_role): return channel = bot.get_channel(reaction.message.channel.id) content = reaction.message.content item_id = get_id_from_discord(content) if content.startswith("Added") and str(reaction) == GOOD_BAD[1]: return await channel.send(db.remove_request(item_id)) if content.startswith("Possible NSFW") and str(reaction) == GOOD_BAD[0]: return await channel.send(db.verify_request(item_id))
async def delete(ctx, arg): await ctx.send(db.remove_request(arg.strip()))
async def delete(ctx, arg): db.remove_request(arg.strip()) await ctx.send(f"Deleted: {arg}.")