Add DisablePingEveryoneHere/DisablePingRoles/DisablePingUsers keys to config

This commit is contained in:
Reach
2021-05-05 01:24:14 +02:00
parent af543dcd05
commit 4a27dd0591

View File

@@ -85,91 +85,94 @@ type ChannelMember struct {
type ChannelMembers []ChannelMember type ChannelMembers []ChannelMember
type Protocol struct { type Protocol struct {
AuthCode string // steam AuthCode string // steam
BindAddress string // mattermost, slack // DEPRECATED BindAddress string // mattermost, slack // DEPRECATED
Buffer int // api Buffer int // api
Charset string // irc Charset string // irc
ClientID string // msteams ClientID string // msteams
ColorNicks bool // only irc for now ColorNicks bool // only irc for now
Debug bool // general Debug bool // general
DebugLevel int // only for irc now DebugLevel int // only for irc now
DisableWebPagePreview bool // telegram DisablePingEveryoneHere bool // discord
EditSuffix string // mattermost, slack, discord, telegram, gitter DisablePingRoles bool // discord
EditDisable bool // mattermost, slack, discord, telegram, gitter DisablePingUsers bool // discord
HTMLDisable bool // matrix DisableWebPagePreview bool // telegram
IconURL string // mattermost, slack EditSuffix string // mattermost, slack, discord, telegram, gitter
IgnoreFailureOnStart bool // general EditDisable bool // mattermost, slack, discord, telegram, gitter
IgnoreNicks string // all protocols HTMLDisable bool // matrix
IgnoreMessages string // all protocols IconURL string // mattermost, slack
Jid string // xmpp IgnoreFailureOnStart bool // general
JoinDelay string // all protocols IgnoreNicks string // all protocols
Label string // all protocols IgnoreMessages string // all protocols
Login string // mattermost, matrix Jid string // xmpp
LogFile string // general JoinDelay string // all protocols
MediaDownloadBlackList []string Label string // all protocols
MediaDownloadPath string // Basically MediaServerUpload, but instead of uploading it, just write it to a file on the same server. Login string // mattermost, matrix
MediaDownloadSize int // all protocols LogFile string // general
MediaServerDownload string MediaDownloadBlackList []string
MediaServerUpload string MediaDownloadPath string // Basically MediaServerUpload, but instead of uploading it, just write it to a file on the same server.
MediaConvertTgs string // telegram MediaDownloadSize int // all protocols
MediaConvertWebPToPNG bool // telegram MediaServerDownload string
MessageDelay int // IRC, time in millisecond to wait between messages MediaServerUpload string
MessageFormat string // telegram MediaConvertTgs string // telegram
MessageLength int // IRC, max length of a message allowed MediaConvertWebPToPNG bool // telegram
MessageQueue int // IRC, size of message queue for flood control MessageDelay int // IRC, time in millisecond to wait between messages
MessageSplit bool // IRC, split long messages with newlines on MessageLength instead of clipping MessageFormat string // telegram
Muc string // xmpp MessageLength int // IRC, max length of a message allowed
Name string // all protocols MessageQueue int // IRC, size of message queue for flood control
Nick string // all protocols MessageSplit bool // IRC, split long messages with newlines on MessageLength instead of clipping
NickFormatter string // mattermost, slack Muc string // xmpp
NickServNick string // IRC Name string // all protocols
NickServUsername string // IRC Nick string // all protocols
NickServPassword string // IRC NickFormatter string // mattermost, slack
NicksPerRow int // mattermost, slack NickServNick string // IRC
NoHomeServerSuffix bool // matrix NickServUsername string // IRC
NoSendJoinPart bool // all protocols NickServPassword string // IRC
NoTLS bool // mattermost, xmpp NicksPerRow int // mattermost, slack
Password string // IRC,mattermost,XMPP,matrix NoHomeServerSuffix bool // matrix
PrefixMessagesWithNick bool // mattemost, slack NoSendJoinPart bool // all protocols
PreserveThreading bool // slack NoTLS bool // mattermost, xmpp
Protocol string // all protocols Password string // IRC,mattermost,XMPP,matrix
QuoteDisable bool // telegram PrefixMessagesWithNick bool // mattemost, slack
QuoteFormat string // telegram PreserveThreading bool // slack
QuoteLengthLimit int // telegram Protocol string // all protocols
RejoinDelay int // IRC QuoteDisable bool // telegram
ReplaceMessages [][]string // all protocols QuoteFormat string // telegram
ReplaceNicks [][]string // all protocols QuoteLengthLimit int // telegram
RemoteNickFormat string // all protocols RejoinDelay int // IRC
RunCommands []string // IRC ReplaceMessages [][]string // all protocols
Server string // IRC,mattermost,XMPP,discord ReplaceNicks [][]string // all protocols
SessionFile string // msteams,whatsapp RemoteNickFormat string // all protocols
ShowJoinPart bool // all protocols RunCommands []string // IRC
ShowTopicChange bool // slack Server string // IRC,mattermost,XMPP,discord
ShowUserTyping bool // slack SessionFile string // msteams,whatsapp
ShowEmbeds bool // discord ShowJoinPart bool // all protocols
SkipTLSVerify bool // IRC, mattermost ShowTopicChange bool // slack
SkipVersionCheck bool // mattermost ShowUserTyping bool // slack
StripNick bool // all protocols ShowEmbeds bool // discord
StripMarkdown bool // irc SkipTLSVerify bool // IRC, mattermost
SyncTopic bool // slack SkipVersionCheck bool // mattermost
TengoModifyMessage string // general StripNick bool // all protocols
Team string // mattermost, keybase StripMarkdown bool // irc
TeamID string // msteams SyncTopic bool // slack
TenantID string // msteams TengoModifyMessage string // general
Token string // gitter, slack, discord, api Team string // mattermost, keybase
Topic string // zulip TeamID string // msteams
URL string // mattermost, slack // DEPRECATED TenantID string // msteams
UseAPI bool // mattermost, slack Token string // gitter, slack, discord, api
UseLocalAvatar []string // discord Topic string // zulip
UseSASL bool // IRC URL string // mattermost, slack // DEPRECATED
UseTLS bool // IRC UseAPI bool // mattermost, slack
UseDiscriminator bool // discord UseLocalAvatar []string // discord
UseFirstName bool // telegram UseSASL bool // IRC
UseUserName bool // discord, matrix UseTLS bool // IRC
UseInsecureURL bool // telegram UseDiscriminator bool // discord
VerboseJoinPart bool // IRC UseFirstName bool // telegram
WebhookBindAddress string // mattermost, slack UseUserName bool // discord, matrix
WebhookURL string // mattermost, slack UseInsecureURL bool // telegram
VerboseJoinPart bool // IRC
WebhookBindAddress string // mattermost, slack
WebhookURL string // mattermost, slack
} }
type ChannelOptions struct { type ChannelOptions struct {