Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @client.command()
- 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.'):
- if webhook_color == 'green':
- webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.green())
- webhook_embed.set_footer(text = 'Atom is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
- await ctx.send(embed = webhook_embed)
- elif webhook_color == 'yellow':
- webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.gold())
- webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
- await ctx.send(embed=webhook_embed)
- elif webhook_color == 'red':
- webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = discord.Colour.red())
- webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
- await ctx.send(embed = webhook_embed)
- else:
- webhook_embed = discord.Embed(title = webhook_title, description = webhook_text, colour = webhook_color)
- webhook_embed.set_footer(text = 'Atom Discord Bot is not affiliated with Geobot. Designed by MrFellox#2889 in Honduras, Cortes.')
- await ctx.send(embed=webhook_embed)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement