mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Check if a rain exists
This commit is contained in:
@@ -73,6 +73,13 @@ public class RainCommand : ICommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
//if you're trying to start the rain
|
//if you're trying to start the rain
|
||||||
|
if (rain != null)
|
||||||
|
{
|
||||||
|
await botInstance.SendChatMessageAsync($"{user.FormatUsername()}, there's already a rain in progress.",
|
||||||
|
true, autoDeleteAfter: cleanupDelay);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
decimal decAmount = Convert.ToDecimal(amount.Value);
|
decimal decAmount = Convert.ToDecimal(amount.Value);
|
||||||
if (decAmount <= 0)
|
if (decAmount <= 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user