Advertisement
Guest User

Untitled

a guest
Dec 15th, 2019
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. if 'http' in self.sku:
  2. try:
  3. webhook = DiscordWebhook(url=self.webhook, content='')
  4. embed = DiscordEmbed(title='Footlocker ' + self.region.upper() + ' ATC URL Mode', color=7700976, url='https://www.footlocker.' + self.region + '/')
  5. embed.set_thumbnail(url=self.image)
  6. embed.add_embed_field(name='Task', value=self.id, inline=False)
  7. embed.add_embed_field(name='Product', value=self.title, inline=False)
  8. embed.add_embed_field(name='Price', value=self.price, inline=False)
  9. embed.add_embed_field(name='Size', value=self.size, inline=False)
  10. embed.add_embed_field(name='Mode', value='ATC', inline=False)
  11. embed.add_embed_field(name='Profile', value=self.profiles, inline=False)
  12. if self.proxy:
  13. embed.add_embed_field(name='Proxy', value=self.prx, inline=False)
  14. else:
  15. embed.add_embed_field(name='Proxy', value='None', inline=False)
  16. embed.set_footer(text='Flow Locker', icon_url='https://cdn.discordapp.com/attachments/654359760430170130/655535475947208704/static_logo.png')
  17. webhook.add_embed(embed)
  18. webhook.execute()
  19. self.status('Successfully sent success webhook!')
  20. except:
  21. self.error('Failed sending success webhook')
  22.  
  23. else:
  24. try:
  25. webhook = DiscordWebhook(url=self.webhook, content='')
  26. embed = DiscordEmbed(title='Footlocker ' + self.region.upper() + ' ATC Variant Mode', color=7700976, url='https://www.footlocker.' + self.region + '/')
  27. embed.add_embed_field(name='Task', value=self.id, inline=False)
  28. embed.add_embed_field(name='Size', value=self.size, inline=False)
  29. embed.add_embed_field(name='Mode', value='ATC', inline=False)
  30. embed.add_embed_field(name='Variant', value=self.variant, inline=False)
  31. embed.add_embed_field(name='Profile', value=self.profiles, inline=False)
  32. if self.proxy:
  33. embed.add_embed_field(name='Proxy', value=self.prx, inline=False)
  34. else:
  35. embed.add_embed_field(name='Proxy', value='None', inline=False)
  36. embed.set_footer(text='Flow Locker', icon_url='https://cdn.discordapp.com/attachments/654359760430170130/655535475947208704/static_logo.png')
  37. webhook.add_embed(embed)
  38. webhook.execute()
  39. self.status('Successfully sent success webhook!')
  40. input()
  41. except:
  42. self.error('Failed sending success webhook')
  43. input()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement