Change superuser command log category. Fix cooldowns command.

This commit is contained in:
West14
2022-01-07 15:46:04 +02:00
parent 740527d827
commit ad13577541
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -113,7 +113,7 @@ namespace West.TelegramBot.ChatManagement.Handler
{
if (!_userService.IsUserSuper(From))
{
_logger.LogDebug("{User} attempted to call /setrep in {Chat}", From, Chat.Title);
_logger.LogInformation("{User} attempted to call /setrep in {Chat}", From, Chat.Title);
return;
}
+2 -2
View File
@@ -33,7 +33,7 @@ namespace West.Entertainment.Handler
{
if (!_userService.IsUserSuper(From))
{
_logger.LogDebug("{User} attempted to call /cooldowns in \"{Chat}\"", From, Chat.Title);
_logger.LogInformation("{User} attempted to call /cooldowns in \"{Chat}\"", From, Chat.Title);
return;
}
@@ -50,7 +50,7 @@ namespace West.Entertainment.Handler
}
msg.Text($"{cd}: ")
.Code((val - DateTime.Now).Duration().ToString())
.Code(DateTime.Now > val ? "Ready" : (val - DateTime.Now).ToString())
.Br();
}