diff --git a/cogs/events.py b/cogs/events.py index 7cea495..6373039 100644 --- a/cogs/events.py +++ b/cogs/events.py @@ -4,6 +4,7 @@ import discord from discord.ext import commands from functions import checks, easterEggResponses from functions.database import stats, muttn, custom_commands +from functions import commands as command_stats import pytz import time import traceback @@ -95,6 +96,7 @@ class Events(commands.Cog): print("{} in {}: {}".format(ctx.author.display_name, "DM" if DM else "{} ({})".format(ctx.channel.name, ctx.guild.name), ctx.message.content)) + command_stats.updateFile(ctx) @commands.Cog.listener() async def on_command_error(self, ctx, err): diff --git a/functions/commands.py b/functions/commands.py new file mode 100644 index 0000000..2f62936 --- /dev/null +++ b/functions/commands.py @@ -0,0 +1,7 @@ +from discord.ext import commands + + +def updateFile(ctx: commands.Context): + prefix_used = ctx.prefix + command: commands.Command = ctx.command + pass