From 3531e8736240ab745b7a114ec46bef889924326c Mon Sep 17 00:00:00 2001 From: Juni Date: Sun, 10 Apr 2022 16:01:49 -0400 Subject: [PATCH] speech react test --- reactquote/reactquote.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/reactquote/reactquote.py b/reactquote/reactquote.py index 68d0c3f..18bdace 100644 --- a/reactquote/reactquote.py +++ b/reactquote/reactquote.py @@ -1,4 +1,5 @@ from redbot.core import commands +import discord class ReactQuote(commands.Cog): """Cog to store quotes by reacting with speech bubble""" @@ -10,7 +11,20 @@ class ReactQuote(commands.Cog): return msg @commands.command() - async def reactquote(self, ctx): + async def reactquote(self, ctx: commands.Context): """TestCommand""" # Your code will go here await ctx.send("I can do stuff, really!") + + + @commands.command() + async def quote(self, ctx: commands.Context): + """TestCommand""" + # Your code will go here + await ctx.send("I can do stuff, really!") + + @commands.Cog.listener() + async def on_raw_reaction_add(self, payload:discord.RawReactionActionEvent): + """On React""" + if str(payload.emoji) == ':speech_ballon': + self.bot.get_channel(payload.channel_id).send('speech') \ No newline at end of file