@nadeko fire
makes more sense now.
This commit is contained in:
parent
ee415d166e
commit
d69c783f3f
@ -9,13 +9,14 @@ using System;
|
|||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace NadekoBot.Modules.Conversations
|
namespace NadekoBot.Modules.Conversations
|
||||||
{
|
{
|
||||||
internal class Conversations : DiscordModule
|
internal class Conversations : DiscordModule
|
||||||
{
|
{
|
||||||
private const string firestr = "🔥 ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้ 🔥";
|
private const string firestr = "🔥 ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็ด้้้้้็็็็็้้้้้็็็็็้้้้้้้้็็็็็้้้้้็็็็็้้้้ 🔥";
|
||||||
public Conversations()
|
public Conversations()
|
||||||
{
|
{
|
||||||
commands.Add(new RipCommand(this));
|
commands.Add(new RipCommand(this));
|
||||||
@ -153,22 +154,23 @@ namespace NadekoBot.Modules.Conversations
|
|||||||
.Parameter("times", ParameterType.Optional)
|
.Parameter("times", ParameterType.Optional)
|
||||||
.Do(async e =>
|
.Do(async e =>
|
||||||
{
|
{
|
||||||
var count = 1;
|
int count;
|
||||||
int.TryParse(e.Args[0], out count);
|
if (string.IsNullOrWhiteSpace(e.Args[0]))
|
||||||
if (count == 0)
|
|
||||||
count = 1;
|
count = 1;
|
||||||
|
else
|
||||||
|
int.TryParse(e.Args[0], out count);
|
||||||
if (count < 1 || count > 12)
|
if (count < 1 || count > 12)
|
||||||
{
|
{
|
||||||
await e.Channel.SendMessage("Number must be between 0 and 12").ConfigureAwait(false);
|
await e.Channel.SendMessage("Number must be between 1 and 12").ConfigureAwait(false);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
var str = "";
|
var str = new StringBuilder();
|
||||||
for (var i = 0; i < count; i++)
|
for (var i = 0; i < count; i++)
|
||||||
{
|
{
|
||||||
str += firestr;
|
str.Append(firestr);
|
||||||
}
|
}
|
||||||
await e.Channel.SendMessage(str).ConfigureAwait(false);
|
await e.Channel.SendMessage(str.ToString()).ConfigureAwait(false);
|
||||||
});
|
});
|
||||||
|
|
||||||
cgb.CreateCommand("dump")
|
cgb.CreateCommand("dump")
|
||||||
|
Loading…
Reference in New Issue
Block a user