From 8da5f4f853b3d7b04d0a3cd6606cda2545b46cec Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 1 Nov 2019 13:21:38 -0400 Subject: [PATCH] added datestamp to console output --- r0b3bot.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index e6afdce..485638f 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -8,6 +8,7 @@ import os import octoapi import homeassistant.remote as remote import time +from datetime import datetime import configparser import json from discord import FFmpegPCMAudio @@ -89,7 +90,11 @@ async def boom(ctx, member : discord.Member="NONE"): async def play_sound(ctx, member : discord.Member, soundFile, command): discord.opus.load_opus("libopus.so") - print(f"{ctx.message.author.display_name} called {command}") + + datestring = datetime.now() + datestring = datestring.strftime("%m/%d/%Y-%H:%M:%S") + + print(f"[{datestring}]: {ctx.message.author.display_name} called {command}") # Need to check whether or not a user has been specified. If one has, we need to use the channel # they are currently connected to instead the channel that the command issuer is in.