mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Change superuser command log category. Fix cooldowns command.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user