mirror of
https://github.com/Bubuni-Team/telegram-bot.git
synced 2026-07-31 00:29:24 +03:00
feat(entertainment): more verbose /rng_test
This commit is contained in:
@@ -14,6 +14,7 @@ using System.Collections.Concurrent;
|
||||
using Telegram.Bot.Types.Enums;
|
||||
using Telegram.Bot.Types;
|
||||
using Kruzya.TelegramBot.Core.Handler;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace West.Entertainment.Handler;
|
||||
|
||||
@@ -114,10 +115,12 @@ public class Roll : CommonHandler
|
||||
|
||||
var positive = 0;
|
||||
var negative = 0;
|
||||
var numbers = new List<int>();
|
||||
|
||||
for (var i = 0; i < 100; i++)
|
||||
{
|
||||
var number = _rng.Next(minValue, maxValue);
|
||||
numbers.Add(number);
|
||||
|
||||
if (number > 0)
|
||||
{
|
||||
@@ -129,7 +132,7 @@ public class Roll : CommonHandler
|
||||
}
|
||||
}
|
||||
|
||||
await Bot.SendTextMessageAsync(Chat, $"Positive: {positive}.\nNegative: {negative}");
|
||||
await Bot.SendTextMessageAsync(Chat, $"{string.Join(", ", numbers)}\n\nPositive: {positive}.\nNegative: {negative}");
|
||||
}
|
||||
|
||||
protected override async Task<Message> Reply(string text)
|
||||
|
||||
Reference in New Issue
Block a user