From 0c2be54bcdd5f753d7a7c911597f83b2f64948c6 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Sat, 24 Jul 2021 22:14:54 -0600 Subject: [PATCH] Close #9 --- jarvis/__init__.py | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/jarvis/__init__.py b/jarvis/__init__.py index 6b10638..40e7dbe 100644 --- a/jarvis/__init__.py +++ b/jarvis/__init__.py @@ -14,8 +14,15 @@ from psutil import Process from jarvis import logo, utils from jarvis.config import get_config from jarvis.db import DBManager -from jarvis.db.types import (Autopurge, Autoreact, Ban, Lock, Mute, Setting, - Warning) +from jarvis.db.types import ( + Autopurge, + Autoreact, + Ban, + Lock, + Mute, + Setting, + Warning, +) from jarvis.utils import build_embed from jarvis.utils.field import Field @@ -85,6 +92,14 @@ async def on_member_join(user: Member): @jarvis.event async def on_message(message: Message): + channel = find( + lambda x: x.id == 599068193339736096, message.channel_mentions + ) + if channel and message.author.id == 293795462752894976: + await channel.send( + content="https://cdn.discordapp.com/attachments/" + + "664621130044407838/805218508866453554/tech.gif" + ) if ( not isinstance(message.channel, DMChannel) and message.author.id != jarvis.user.id