List total commands per day instead of total usages per command

This commit is contained in:
Stijn De Clercq 2021-06-19 17:45:26 +02:00
parent 119d7c8dca
commit e56de111eb
6 changed files with 88 additions and 17 deletions

View file

@ -3,8 +3,7 @@ import datetime
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
from functions.database import stats, muttn, custom_commands, commands as command_stats
import pytz
import time
import traceback
@ -96,7 +95,8 @@ 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)
command_stats.invoked()
@commands.Cog.listener()
async def on_command_error(self, ctx, err):