mirror of
https://github.com/stijndcl/didier.git
synced 2026-04-07 15:48:29 +02:00
fetching from db & dataclass
This commit is contained in:
parent
f6d06eb489
commit
3cfc87b7e1
4 changed files with 95 additions and 1 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue