Update app.py
Browse files
app.py
CHANGED
@@ -42,12 +42,13 @@ class MyClient(discord.Client):
|
|
42 |
|
43 |
#------------------------------------------
|
44 |
async def on_message(self, message):
|
45 |
-
|
46 |
-
|
47 |
-
|
|
|
48 |
if message.content.startswith('!dfif'):
|
49 |
-
|
50 |
-
|
51 |
number_of_images = 4
|
52 |
current_time = int(time.time())
|
53 |
random.seed(current_time)
|
@@ -82,7 +83,7 @@ class MyClient(discord.Client):
|
|
82 |
combined_image.save(combined_image_path)
|
83 |
|
84 |
|
85 |
-
sent_message = await message.reply('Here is the combined image. React with the image number you want to upscale!', file=discord.File('combined_image.png'))
|
86 |
|
87 |
|
88 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
42 |
|
43 |
#------------------------------------------
|
44 |
async def on_message(self, message):
|
45 |
+
prompt = str(message.content)
|
46 |
+
channel = message.channel
|
47 |
+
await channel.send(prompt)
|
48 |
+
|
49 |
if message.content.startswith('!dfif'):
|
50 |
+
|
51 |
+
|
52 |
number_of_images = 4
|
53 |
current_time = int(time.time())
|
54 |
random.seed(current_time)
|
|
|
83 |
combined_image.save(combined_image_path)
|
84 |
|
85 |
|
86 |
+
sent_message = await message.reply(f'Here is the combined image. React with the image number you want to upscale!', file=discord.File(f,'combined_image.png'))
|
87 |
|
88 |
|
89 |
#----------------------------------------------------------------------------------------------------------------------------------------------
|