Advertisement
Guest User

Untitled

a guest
Aug 14th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.11 KB | None | 0 0
  1. for row in rows:
  2. print_row = row
  3.  
  4. if fist_load == 1:
  5. past_row = print_row
  6. fist_load = 0
  7.  
  8. if past_row != print_row:
  9. for row in rows:
  10. sqlQuery2 = "select * from {}bans where bid = {}".format(table_prefix, row["bid"])
  11.  
  12. cursorObject.execute(sqlQuery2)
  13. rows2 = cursorObject.fetchall()
  14.  
  15. for row2 in rows2:
  16. if row2["length"] == 0:
  17. ban_type = "Permanent"
  18. else:
  19. ban_type = "Temporary"
  20.  
  21. 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"]))
  22. await bot.send_message(bot.get_channel(protest_channel),content="@here", embed=embed)
  23.  
  24. past_row = print_row
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement