C# Class SteamChatBot.Triggers.AntispamTrigger

Inheritance: BaseTrigger
Exibir arquivo Open project: Steam-Chat-Bot/SteamChatBot

Public Methods

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

Private Methods

Method 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 method

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

respondToChatMessage() public method

public respondToChatMessage ( SteamID roomID, SteamID chatterId, string message ) : bool
roomID SteamKit2.SteamID
chatterId SteamKit2.SteamID
message string
return bool