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:
@@ -113,7 +113,7 @@ namespace West.TelegramBot.ChatManagement.Handler
|
|||||||
{
|
{
|
||||||
if (!_userService.IsUserSuper(From))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace West.Entertainment.Handler
|
|||||||
{
|
{
|
||||||
if (!_userService.IsUserSuper(From))
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -50,7 +50,7 @@ namespace West.Entertainment.Handler
|
|||||||
}
|
}
|
||||||
|
|
||||||
msg.Text($"{cd}: ")
|
msg.Text($"{cd}: ")
|
||||||
.Code((val - DateTime.Now).Duration().ToString())
|
.Code(DateTime.Now > val ? "Ready" : (val - DateTime.Now).ToString())
|
||||||
.Br();
|
.Br();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user