async def METHOD_NAME(self, ctx):
    await self.increase_stat(ctx, "commands_used_life")
    # log command lifetime stat
    await self.bot.mdb.analytics_command_activity.update_one(
        {"name": ctx.command.qualified_name},
        {"$inc": {"num_invocations": 1}, "$currentDate": {"last_invoked_time": True}},  # yay, atomic operations
        upsert=True,
    )
    # log event
    guild_id = 0 if ctx.guild is None else ctx.guild.id
    await self.bot.mdb.analytics_command_events.insert_one(
        {
            "timestamp": datetime.datetime.utcnow(),
            "command_name": ctx.command.qualified_name,
            "user_id": ctx.author.id,
            "guild_id": guild_id,
        }
    )