tgstation-server 6.12.0
The /tg/station 13 server suite
Loading...
Searching...
No Matches
IChatManager.cs
Go to the documentation of this file.
1using System;
2using System.Collections.Generic;
3using System.Threading;
4using System.Threading.Tasks;
5
8
10{
15 {
21
28 ValueTask ChangeSettings(Models.ChatBot newSettings, CancellationToken cancellationToken);
29
36 Task DeleteConnection(long connectionId, CancellationToken cancellationToken);
37
45 ValueTask ChangeChannels(long connectionId, IEnumerable<Models.ChatChannel> newChannels, CancellationToken cancellationToken);
46
52 void QueueMessage(MessageContent message, IEnumerable<ulong> channelIds);
53
58 void QueueWatchdogMessage(string message);
59
70 Func<string?, string, Action<bool>> QueueDeploymentMessage(
71 Models.RevisionInformation revisionInformation,
72 Api.Models.EngineVersion engineVersion,
73 DateTimeOffset? estimatedCompletionTime,
74 string? gitHubOwner,
75 string? gitHubRepo,
76 bool localCommitPushed);
77
83
89 ValueTask UpdateTrackingContexts(CancellationToken cancellationToken);
90 }
91}
Represents a message to send to a chat provider.
For managing connected chat services.
void QueueWatchdogMessage(string message)
Queue a chat message to configured watchdog channels.
Task DeleteConnection(long connectionId, CancellationToken cancellationToken)
Disconnects and deletes a given connection.
void RegisterCommandHandler(ICustomCommandHandler customCommandHandler)
Registers a customCommandHandler to use.
ValueTask ChangeChannels(long connectionId, IEnumerable< Models.ChatChannel > newChannels, CancellationToken cancellationToken)
Change chat channels.
IChatTrackingContext CreateTrackingContext()
Start tracking Commands.CustomCommands and ChannelRepresentations.
ValueTask UpdateTrackingContexts(CancellationToken cancellationToken)
Force an update with the active channels on all active IChatTrackingContexts.
Func< string?, string, Action< bool > > QueueDeploymentMessage(Models.RevisionInformation revisionInformation, Api.Models.EngineVersion engineVersion, DateTimeOffset? estimatedCompletionTime, string? gitHubOwner, string? gitHubRepo, bool localCommitPushed)
Send the message for a deployment to configured deployment channels.
ValueTask ChangeSettings(Models.ChatBot newSettings, CancellationToken cancellationToken)
Change chat settings. If the Api.Models.EntityId.Id is not currently in use, a new connection will be...
void QueueMessage(MessageContent message, IEnumerable< ulong > channelIds)
Queue a chat message to a given set of channelIds .
Represents a tracking of dynamic chat json files.
Handles Commands.ICommands that map to those defined in a IChatTrackingContext.
Represents a component meant to be started and stopped by its parent component.