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