Skip to content

Commit

Permalink
fix(log-commands): add parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
ooliver1 committed May 23, 2023
1 parent 41303cb commit bac1ab3
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion botbase/exts/log_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ async def on_application_command_completion(self, inter: MyInter):

assert inter.channel is not None

cmd = inter.application_command.name
guild = inter.guild.id if inter.guild is not None else None
channel = inter.channel.id if inter.guild is not None else None
member = inter.user.id

# await CommandLog.insert(
# CommandLog(
# {
Expand All @@ -38,7 +43,11 @@ async def on_application_command_completion(self, inter: MyInter):
ON CONFLICT (command, guild, channel, member)
DO UPDATE
SET amount = command_log.amount + 1
"""
""",
cmd,
guild,
channel,
member,
)


Expand Down

0 comments on commit bac1ab3

Please sign in to comment.