tgstation-server 6.17.0
The /tg/station 13 server suite
|
Manage the server chat bots. More...
Public Member Functions | |
ChatConnectionStringBuilder? | CreateConnectionStringBuilder () |
Get the ChatConnectionStringBuilder which maps to the ConnectionString. | |
void | SetConnectionStringBuilder (ChatConnectionStringBuilder stringBuilder) |
Set the ChatConnectionStringBuilder for the ChatBotSettings. Also updates the ConnectionString. | |
Properties | |
bool? | Enabled [get, set] |
If the connection is enabled. | |
uint? | ReconnectionInterval [get, set] |
The time interval in minutes the chat bot attempts to reconnect if Enabled and disconnected. Must not be zero. | |
ushort? | ChannelLimit [get, set] |
The maximum number of ChatChannels the ChatBotSettings may contain. | |
ChatProvider? | Provider [get, set] |
The ChatProvider used for the connection. | |
string? | ConnectionString [get, set] |
The information used to connect to the Provider. | |
![]() | |
virtual ? string | Name [get, set] |
The name of the entity represented by the NamedEntity. | |
![]() | |
virtual ? long | Id [get, set] |
The ID of the entity. | |
Manage the server chat bots.
Definition at line 9 of file ChatBotSettings.cs.
ChatConnectionStringBuilder? Tgstation.Server.Api.Models.Internal.ChatBotSettings.CreateConnectionStringBuilder | ( | ) |
Get the ChatConnectionStringBuilder which maps to the ConnectionString.
Definition at line 52 of file ChatBotSettings.cs.
References Tgstation.Server.Api.Models.Internal.ChatBotSettings.ConnectionString, and Tgstation.Server.Api.Models.Internal.ChatBotSettings.Provider.
void Tgstation.Server.Api.Models.Internal.ChatBotSettings.SetConnectionStringBuilder | ( | ChatConnectionStringBuilder | stringBuilder | ) |
Set the ChatConnectionStringBuilder for the ChatBotSettings. Also updates the ConnectionString.
stringBuilder | The optional ChatConnectionStringBuilder. |
Definition at line 68 of file ChatBotSettings.cs.
References Tgstation.Server.Api.Models.Internal.ChatBotSettings.ConnectionString, and Tgstation.Server.Api.Models.Internal.ChatConnectionStringBuilder.ToString().
|
getset |
The maximum number of ChatChannels the ChatBotSettings may contain.
5
Definition at line 29 of file ChatBotSettings.cs.
Referenced by Tgstation.Server.Host.Models.ChatBot.ToApi().
|
getset |
The information used to connect to the Provider.
Definition at line 46 of file ChatBotSettings.cs.
Referenced by Tgstation.Server.Api.Models.Internal.ChatBotSettings.CreateConnectionStringBuilder(), Tgstation.Server.Host.Components.Chat.Providers.DiscordProvider.DiscordProvider(), Tgstation.Server.Host.Database.MySqlDatabaseContext.OnModelCreating(), Tgstation.Server.Api.Models.Internal.ChatBotSettings.SetConnectionStringBuilder(), and Tgstation.Server.Host.Models.ChatBot.ToApi().
|
getset |
If the connection is enabled.
Definition at line 14 of file ChatBotSettings.cs.
Referenced by Tgstation.Server.Host.Models.ChatBot.ToApi().
|
getset |
The ChatProvider used for the connection.
Definition at line 37 of file ChatBotSettings.cs.
Referenced by Tgstation.Server.Api.Models.Internal.ChatBotSettings.CreateConnectionStringBuilder(), Tgstation.Server.Host.Models.ChatBot.ToApi(), and Tgstation.Server.Api.Models.Internal.ChatBotApiBase.ValidateProviderChannelTypes().
|
getset |
The time interval in minutes the chat bot attempts to reconnect if Enabled and disconnected. Must not be zero.
60
Definition at line 22 of file ChatBotSettings.cs.
Referenced by Tgstation.Server.Host.Models.ChatBot.ToApi().