mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Fix hearing remove command, - instead of +
This commit is contained in:
@@ -123,7 +123,7 @@ public class GmKasinoListCommand : ICommand
|
|||||||
result += $"[br]{i}: {image}";
|
result += $"[br]{i}: {image}";
|
||||||
}
|
}
|
||||||
|
|
||||||
await botInstance.SendChatMessageAsync(result, true);
|
await botInstance.SendChatMessagesAsync(result.SplitMessage().ToList(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -213,7 +213,7 @@ public class GnKasinoListCommand : ICommand
|
|||||||
result += $"[br]{i}: {image}";
|
result += $"[br]{i}: {image}";
|
||||||
}
|
}
|
||||||
|
|
||||||
await botInstance.SendChatMessageAsync(result, true);
|
await botInstance.SendChatMessagesAsync(result.SplitMessage().ToList(), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -384,7 +384,7 @@ public class RemoveCourtHearingCommand : ICommand
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
hearings.RemoveAt(hearingIndex + 1);
|
hearings.RemoveAt(hearingIndex - 1);
|
||||||
await Helpers.SetValueAsJsonObject(BuiltIn.Keys.BotCourtCalendar, hearings);
|
await Helpers.SetValueAsJsonObject(BuiltIn.Keys.BotCourtCalendar, hearings);
|
||||||
await botInstance.SendChatMessageAsync("Updated list of hearings", true);
|
await botInstance.SendChatMessageAsync("Updated list of hearings", true);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user