fetching from db & dataclass

This commit is contained in:
Stijn De Clercq 2021-05-17 18:14:33 +02:00
parent f6d06eb489
commit 3cfc87b7e1
4 changed files with 95 additions and 1 deletions

View file

@ -3,7 +3,7 @@ import datetime
import discord
from discord.ext import commands
from functions import checks, easterEggResponses
from functions.database import stats, muttn
from functions.database import stats, muttn, custom_commands
import pytz
import time
import traceback
@ -75,6 +75,11 @@ class Events(commands.Cog):
if eER:
await message.channel.send(eER)
# Check for custom commands
custom = custom_commands.is_custom_command(message.content)
if custom:
await message.channel.send(custom.response)
# Earn XP & Message count
stats.sentMessage(message)