Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.64 KB | None | 0 0
  1.  
  2. @client.command()
  3. async def reportar(ctx, webhook_color = 0x7289da, webhook_title = ':loudspeaker: Nuevo Reporte! :loudspeaker:', webhook_text = 'Al parecer Geobot esta teniendo fallos que debido a mis limitaciones no puedo identificar, MrFellox ha sido notificado y pondra manos en el asunto para traer a Geobot estable lo mas pronto posible.'):
  4.     if webhook_color == 'green':
  5.         webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.green())
  6.         webhook_embed.set_footer(text = 'Atom is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
  7.         await ctx.send(embed = webhook_embed)
  8.     elif webhook_color == 'yellow':
  9.         webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.gold())
  10.         webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
  11.         await ctx.send(embed=webhook_embed)
  12.  
  13.     elif webhook_color == 'red':
  14.         webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.red())
  15.         webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
  16.         await ctx.send(embed = webhook_embed)
  17.     else:
  18.         webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = webhook_color)
  19.         webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
  20.         await ctx.send(embed=webhook_embed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement