>acro can now be ran with time between 10 and 120 only
This commit is contained in:
parent
90fa989db0
commit
bf7d070684
@ -28,6 +28,8 @@ namespace NadekoBot.Modules.Games
|
|||||||
[RequireContext(ContextType.Guild)]
|
[RequireContext(ContextType.Guild)]
|
||||||
public async Task Acro(int time = 60)
|
public async Task Acro(int time = 60)
|
||||||
{
|
{
|
||||||
|
if (time < 10 || time > 120)
|
||||||
|
return;
|
||||||
var channel = (ITextChannel)Context.Channel;
|
var channel = (ITextChannel)Context.Channel;
|
||||||
|
|
||||||
var game = new AcrophobiaGame(channel, time);
|
var game = new AcrophobiaGame(channel, time);
|
||||||
|
@ -45,10 +45,9 @@ namespace NadekoBot.Modules.Games
|
|||||||
{
|
{
|
||||||
if (p == 0)
|
if (p == 0)
|
||||||
return "🚀";
|
return "🚀";
|
||||||
else if (p == 1)
|
if (p == 1)
|
||||||
return "📎";
|
return "📎";
|
||||||
else
|
return "✂️";
|
||||||
return "✂️";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
int pick;
|
int pick;
|
||||||
|
Loading…
Reference in New Issue
Block a user