mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-04-30 03:22:04 -04:00
Check if a rain exists
This commit is contained in:
@@ -73,6 +73,13 @@ public class RainCommand : ICommand
|
||||
return;
|
||||
}
|
||||
//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);
|
||||
if (decAmount <= 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user