mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
Code cleanup
This commit is contained in:
@@ -114,7 +114,7 @@ namespace West.TelegramBot.ChatManagement.Handler
|
||||
}
|
||||
|
||||
receiverRepOption.SetValue(receiverRepCount);
|
||||
Db.MarkAsModified(receiverRepOption);
|
||||
Db.Update(receiverRepOption);
|
||||
|
||||
await Reply($"{From.ToHtml()}<code>({await GetUserReputation(From)}) " +
|
||||
$"{action} репутацию </code>{receiver.ToHtml()}<code>({Math.Round(receiverRepCount, 2)})</code>");
|
||||
@@ -138,7 +138,7 @@ namespace West.TelegramBot.ChatManagement.Handler
|
||||
reputation = Math.Round(reputation, 2);
|
||||
var opt = await GetReputationOption(RepliedUser);
|
||||
opt.SetValue(reputation);
|
||||
Db.MarkAsModified(opt);
|
||||
Db.Update(opt);
|
||||
|
||||
await Reply(
|
||||
new HtmlString()
|
||||
|
||||
Reference in New Issue
Block a user