Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @commands.command(aliases="giveaway")
- @commands.has_permissions(manage_guild=True)
- async def sorteio(self, ctx, *, desc: str=None, duracao: int=None):
- if desc is None:
- await ctx.send(f"``{ctx.author.name}`` você deve informar uma descrição para o sorteio.")
- elif duracao is None:
- await ctx.send(f"> ``{ctx.author.name}`` você deve informar a duração deste sorteio(em segundos).")
- else:
- canal = self.client.get_channel(675861076360953906)
- embed = discord.Embed(color=0x00CED1, title="🎁 Sorteio", description=f"{desc}\n\nDuração: {duracao}")
- embed.set_footer(text="Reaja com 🎉 para participar.", icon_url=self.client.user.avatar_url)
- await canal.send(embed=embed)
- await embed.add_reaction("🎉")
- @commands.Cog.listener()
- on_reaction_add(reaction, user):
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement