Add little logging
This commit is contained in:
parent
0be8b9039f
commit
def27a184d
@ -9,6 +9,7 @@ bot = commands.Bot(command_prefix="!")
|
||||
|
||||
@bot.command()
|
||||
async def checkin(context: commands.Context) -> None:
|
||||
print(f"{context.message.author.display_name} checked in")
|
||||
checkin_db.auto_checkout()
|
||||
checkin_db.update(context.message.author.display_name, True)
|
||||
count = checkin_db.get_checkin_count()
|
||||
@ -20,6 +21,7 @@ async def checkin(context: commands.Context) -> None:
|
||||
|
||||
@bot.command()
|
||||
async def checkout(context: commands.Context) -> None:
|
||||
print(f"{context.message.author.display_name} checked out")
|
||||
checkin_db.update(context.message.author.display_name, False)
|
||||
count = checkin_db.get_checkin_count()
|
||||
if count == 1:
|
||||
|
Loading…
x
Reference in New Issue
Block a user