This commit is contained in:
Zeva Rose 2021-07-24 22:14:54 -06:00
parent c963dbd889
commit 0c2be54bcd

View file

@ -14,8 +14,15 @@ from psutil import Process
from jarvis import logo, utils from jarvis import logo, utils
from jarvis.config import get_config from jarvis.config import get_config
from jarvis.db import DBManager from jarvis.db import DBManager
from jarvis.db.types import (Autopurge, Autoreact, Ban, Lock, Mute, Setting, from jarvis.db.types import (
Warning) Autopurge,
Autoreact,
Ban,
Lock,
Mute,
Setting,
Warning,
)
from jarvis.utils import build_embed from jarvis.utils import build_embed
from jarvis.utils.field import Field from jarvis.utils.field import Field
@ -85,6 +92,14 @@ async def on_member_join(user: Member):
@jarvis.event @jarvis.event
async def on_message(message: Message): 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 ( if (
not isinstance(message.channel, DMChannel) not isinstance(message.channel, DMChannel)
and message.author.id != jarvis.user.id and message.author.id != jarvis.user.id