tgstation-server  4.3.2
The /tg/station 13 server suite
IChatManager.cs
Go to the documentation of this file.
1 using Microsoft.Extensions.Hosting;
2 using System;
3 using System.Collections.Generic;
4 using System.Threading;
5 using System.Threading.Tasks;
7 
8 namespace Tgstation.Server.Host.Components.Chat
9 {
14  {
19  void RegisterCommandHandler(ICustomCommandHandler customCommandHandler);
20 
27  Task ChangeSettings(ChatBot newSettings, CancellationToken cancellationToken);
28 
35  Task DeleteConnection(long connectionId, CancellationToken cancellationToken);
36 
44  Task ChangeChannels(long connectionId, IEnumerable<Api.Models.ChatChannel> newChannels, CancellationToken cancellationToken);
45 
53  Task SendMessage(string message, IEnumerable<ulong> channelIds, CancellationToken cancellationToken);
54 
62  Task SendWatchdogMessage(string message, bool adminOnly, CancellationToken cancellationToken);
63 
75  Task<Func<string, string, Task>> SendDeploymentMessage(
76  Models.RevisionInformation revisionInformation,
77  Version byondVersion,
78  DateTimeOffset? estimatedCompletionTime,
79  string gitHubOwner,
80  string gitHubRepo,
81  bool localCommitPushed,
82  CancellationToken cancellationToken);
83 
88  IChatTrackingContext CreateTrackingContext();
89  }
90 }
Manage the server chat bots
Definition: ChatBot.cs:9
For managing connected chat services
Definition: IChatManager.cs:13
Handles Commands.ICommands that map to those defined in a IChatTrackingContext
Represents a tracking of dynamic chat json files