2using System.Globalization;
5using System.Threading.Tasks;
20 public string Name =>
"byond";
23 public string HelpText =>
"Displays the running Byond version. Use --active for the version used in future deployments";
46 this.watchdog =
watchdog ??
throw new ArgumentNullException(nameof(
watchdog));
50 public Task<MessageContent>
Invoke(
string arguments,
ChatUser user, CancellationToken cancellationToken)
52 if (arguments.Split(
' ').Any(x => x.ToUpperInvariant() ==
"--ACTIVE"))
60 Text =
"Server offline!",
Represents a tgs_chat_user datum.
For displaying the installed Byond version.
ByondCommand(IByondManager byondManager, IWatchdog watchdog)
Initializes a new instance of the ByondCommand class.
string HelpText
The help text to display when queires are made about the command.
bool AdminOnly
If the command should only be available to ChatUsers who's ChatUser.Channel has ChannelRepresentation...
Task< MessageContent > Invoke(string arguments, ChatUser user, CancellationToken cancellationToken)
Invoke the ICommand. A Task<TResult> resulting in a MessageContent to send to the invoker.
readonly IByondManager byondManager
The IByondManager for the ByondCommand.
readonly IWatchdog watchdog
The IWatchdog for the ByondCommand.
string Name
The text to invoke the command. May not be "?" or "help" (case-insensitive).
Represents a message to send to a chat provider.
For managing the BYOND installation.
Version ActiveVersion
The currently active BYOND version.
Represents a command that can be invoked by talking to chat bots.
Runs and monitors the twin server controllers.
Models.CompileJob ActiveCompileJob
Retrieves the Models.CompileJob currently running on the server.
WatchdogStatus Status
The current WatchdogStatus.
WatchdogStatus
The current status of the watchdog.