0.2
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import gradio as gr
|
|
4 |
import os
|
5 |
import threading
|
6 |
|
7 |
-
adding this to break the bot while I sleep
|
8 |
|
9 |
# Get Gradio client
|
10 |
jojogan = gradio_client.Client("akhaliq/JoJoGAN")
|
@@ -39,6 +39,12 @@ class MyClient(discord.Client):
|
|
39 |
await message.reply(f'Here is the {style} version of it', file=discord.File(im))
|
40 |
else:
|
41 |
await message.channel.send("No attachments to be found...Can't animify dat! Try sending me an image π")
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
DISCORD_TOKEN = os.environ.get("GRADIOTEST_TOKEN", None)
|
44 |
intents = discord.Intents.default()
|
|
|
4 |
import os
|
5 |
import threading
|
6 |
|
7 |
+
#adding this to break the bot while I sleep
|
8 |
|
9 |
# Get Gradio client
|
10 |
jojogan = gradio_client.Client("akhaliq/JoJoGAN")
|
|
|
39 |
await message.reply(f'Here is the {style} version of it', file=discord.File(im))
|
40 |
else:
|
41 |
await message.channel.send("No attachments to be found...Can't animify dat! Try sending me an image π")
|
42 |
+
|
43 |
+
#new
|
44 |
+
async def on_message_delete(self, message):
|
45 |
+
# replace CHANNEL_ID with specific channel we want to use
|
46 |
+
if message.channel.id == 1100458786826747945:
|
47 |
+
print(f'Message deleted in channel {message.channel}: {message.content}')
|
48 |
|
49 |
DISCORD_TOKEN = os.environ.get("GRADIOTEST_TOKEN", None)
|
50 |
intents = discord.Intents.default()
|