Clean all the things!

This commit is contained in:
RogueException
2015-08-26 16:14:19 -03:00
parent a19c4b4547
commit 9d06e2b48d
28 changed files with 238 additions and 355 deletions

View File

@@ -1,6 +1,6 @@
using System.Collections.Generic;
namespace Discord
namespace Discord.Commands
{
public static class CommandParser
{
@@ -119,36 +119,5 @@ namespace Discord
args = argList.ToArray();
return true;
}
public static bool ArgsEqual(string[] args, int expected)
{
return args.Length == expected;
}
public static bool ArgsAtLeast(string[] args, int expected)
{
return args.Length >= expected;
}
public static bool ArgsAtMost(string[] args, int expected)
{
return args.Length <= expected;
}
public static bool ArgsIn(string[] args, params int[] expected)
{
int count = args.Length;
for (int i = 0; i < expected.Length; i++)
{
if (count == expected[i])
return true;
}
return false;
}
public static bool ArgsBetween(string[] args, int min, int max)
{
return args.Length >= min && args.Length <= max;
}
public static bool NoArgs(string[] args, params int[] expected)
{
return args.Length == 0;
}
}
}