@@ -22,6 +22,6 @@ RUN pip3 install -e /app/commands
COPY ./drivers/discord_driver.py .
-RUN pip3 install discord.py
+RUN pip3 install discord.py audioop-lts
CMD python3 discord_driver.py
@@ -239,3 +239,13 @@ def sasuke(n: Arg(0, int, required=False, default=3)):
data = img.read()
for _ in range(n):
yield Attachment("image", data)
+
+TOM_PATH = os.path.join(os.path.dirname(os.path.realpath(__file__)), "tom.jpg")
+@as_command
+def tom():
+ with open(TOM_PATH, "br") as img:
+ data = img.read()
+ yield Attachment("image", data)