Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for row in rows:
- print_row = row
- if fist_load == 1:
- past_row = print_row
- fist_load = 0
- if past_row != print_row:
- for row in rows:
- sqlQuery2 = "select * from {}bans where bid = {}".format(table_prefix, row["bid"])
- cursorObject.execute(sqlQuery2)
- rows2 = cursorObject.fetchall()
- for row2 in rows2:
- if row2["length"] == 0:
- ban_type = "Permanent"
- else:
- ban_type = "Temporary"
- embed = discord.Embed(title="__**Protest ID {}**__".format(row["bid"]), colour=discord.Colour(embed_color), description="__**Ban Information**__\n**User:** {}\n**Steam ID:** {}\n**Ban Type:** {}\n**Ban Reason:** {}\n\n**__Protest__**\n**Email:** {}\n**Reason:**\n{}".format(row2["name"],row2["authid"],ban_type,row2["reason"],row["email"],row["reason"]))
- await bot.send_message(bot.get_channel(protest_channel),content="@here", embed=embed)
- past_row = print_row
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement