[MyClient] -> added reactions (no functionality)
Browse files
app.py
CHANGED
@@ -72,6 +72,12 @@ class MyClient(discord.Client):
|
|
72 |
if message.channel.id not in ALLOWED_CHANNEL_IDS:
|
73 |
return
|
74 |
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
#deepfloydif----------------------------------------------------------------------------------------------------
|
76 |
|
77 |
if message.content.startswith('!deepfloydif'): # change to application commands, more intuitive
|
@@ -144,6 +150,11 @@ class MyClient(discord.Client):
|
|
144 |
with open(combined_image_path, 'rb') as f:
|
145 |
await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
|
146 |
|
|
|
|
|
|
|
|
|
|
|
147 |
|
148 |
|
149 |
|
|
|
72 |
if message.channel.id not in ALLOWED_CHANNEL_IDS:
|
73 |
return
|
74 |
|
75 |
+
# function for reacting
|
76 |
+
async def bot_react(message):
|
77 |
+
emojis = ['1️⃣', '2️⃣', '3️⃣', '4️⃣']
|
78 |
+
for emoji in emojis:
|
79 |
+
await message.add_reaction(emoji)
|
80 |
+
|
81 |
#deepfloydif----------------------------------------------------------------------------------------------------
|
82 |
|
83 |
if message.content.startswith('!deepfloydif'): # change to application commands, more intuitive
|
|
|
150 |
with open(combined_image_path, 'rb') as f:
|
151 |
await message.reply('Here is the combined image', file=discord.File(f, 'combined_image.png'))
|
152 |
|
153 |
+
await bot_react(message)
|
154 |
+
#-------------------------------------------------------------------------------------------------------------
|
155 |
+
# deepfloydif -> bot_react ->
|
156 |
+
# await bot_react
|
157 |
+
#
|
158 |
|
159 |
|
160 |
|