C# Class SteamChatBot.Triggers.AntispamTrigger

Inheritance: BaseTrigger
Afficher le fichier Open project: Steam-Chat-Bot/SteamChatBot

Méthodes publiques

Méthode Description
AntispamTrigger ( TriggerType type, string name, TriggerOptionsBase options ) : System
respondToChatMessage ( SteamID roomID, SteamID chatterId, string message ) : bool

Private Methods

Méthode Description
Log ( string prefix, SteamID userID, SteamID groupID ) : void

Logs bot actions to the console

Log ( string prefix, SteamID userID, SteamID groupID, string reason ) : void

Logs bot actions to the console

ReducePenT_Tick ( object sender, EventArgs e ) : void
ReducePenalties ( ) : void

Reduces the score of every user by (options.ptimer.amount) every (options.ptimer.resolution) ms

Respond ( SteamID toID, SteamID userID, string message ) : bool
Unban_Elapsed ( object sender, System.Timers.ElapsedEventArgs e, SteamID toID, SteamID userID ) : void

Method Details

AntispamTrigger() public méthode

public AntispamTrigger ( TriggerType type, string name, TriggerOptionsBase options ) : System
type TriggerType
name string
options SteamChatBot.Triggers.TriggerOptions.TriggerOptionsBase
Résultat System

respondToChatMessage() public méthode

public respondToChatMessage ( SteamID roomID, SteamID chatterId, string message ) : bool
roomID SteamKit2.SteamID
chatterId SteamKit2.SteamID
message string
Résultat bool