Rewrite the !dice command from scratch
This commit is contained in:
parent
d7e313c9fa
commit
6d44960867
13 changed files with 376 additions and 126 deletions
15
Geekbot.net/Lib/Extensions/IntExtensions.cs
Normal file
15
Geekbot.net/Lib/Extensions/IntExtensions.cs
Normal file
|
@ -0,0 +1,15 @@
|
|||
using System;
|
||||
|
||||
namespace Geekbot.net.Lib.Extensions
|
||||
{
|
||||
public static class IntExtensions
|
||||
{
|
||||
public static void Times(this int count, Action action)
|
||||
{
|
||||
for (var i = 0; i < count; i++)
|
||||
{
|
||||
action();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue