Skip to content

Commit

Permalink
Discord message updated
Browse files Browse the repository at this point in the history
  • Loading branch information
AlienXAXS committed Jul 19, 2022
1 parent e82a87e commit f1fbfc2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions JitaRunBot/Game/JitaRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,7 @@ private void HandleSystemJump(SystemType previousSystem, SystemType newSystem)
if (_isRunActive)
_totalJumps++;

var statusMsg =
$"System Jump Detected: {_previousSystem.Name} -> {_currentSystem.Name} (jumps: {_totalJumps}|Active:{_isRunActive})";
var statusMsg = $"System Jump Detected:\r\n{_previousSystem.Name}({(previousSystem.SecurityLevel == SystemType.SystemSecurity.NULLSEC ? "Null" : "Empire")}) To {_currentSystem.Name}({(_currentSystem.SecurityLevel == SystemType.SystemSecurity.NULLSEC ? "Null" : "Empire")})\r\nJumps: {_totalJumps} | Active:{_isRunActive} | Status:{Enum.GetName(_shipStatus)})";
ConsoleUtil.WriteToConsole(statusMsg, ConsoleUtil.LogLevel.INFO, ConsoleColor.Yellow);
DiscordWebHookHandler.Instance.GetDiscordWebHook().SendToDiscord(new DiscordMessage(statusMsg)).Wait(2000);

Expand Down

0 comments on commit f1fbfc2

Please sign in to comment.