private void API_onResourceStart() { DiscordBot.startBot(); API.delay(2000, true, () => { DiscordBot.sendMessageToServer($"[{Environment.MachineName}] Started Server: {serverIP}"); DiscordBot.sendMessageToTesters($"[{Environment.MachineName}] Started Server: {serverIP}"); }); }
private void API_onResourceStop() { DiscordBot.sendMessageToServer($"[{Environment.MachineName}] Stopped Server: {serverIP}"); DiscordBot.sendMessageToTesters($"[{Environment.MachineName}] Stopped Server: {serverIP}"); }