Property | Type | Description | |
---|---|---|---|
ReplyEnabled | bool |
Method | Description | |
---|---|---|
BaseTrigger ( TriggerType type, string name, |
||
OnAnnouncement ( |
When a group makes an announcement
|
|
OnBannedChat ( |
Returns true if a message was sent
|
|
OnChatInvite ( |
Return true if the invite is accepted
|
|
OnChatMessage ( |
Return true if a message was sent
|
|
OnDisconnected ( |
Returns true if a message was sent
|
|
OnEnteredChat ( |
Return true if a message was sent
|
|
OnFriendMessage ( |
Return true if a message was sent
|
|
OnFriendRequest ( |
Return true if the request is accepted
|
|
OnKickedChat ( |
Return true if a message was sent
|
|
OnLeftChat ( |
Return true if a message was sent
|
|
OnLoad ( ) : bool |
Return true if trigger loads properly
|
|
OnLoggedOff ( ) : bool |
Reacts to bot being logged off
|
|
OnLoggedOn ( ) : bool |
Reacts to bot being logged on
|
|
OnSentMessage ( |
Return true if message was seen but don't want other triggers to see
|
|
OnTradeOffer ( int number, bool haveEatenEvent ) : bool |
When someone sends a trade offer
|
|
OnTradeProposed ( |
When someone sends a trade invite
|
|
OnTradeSession ( |
When someone a trade is opened
|
|
ReadTriggers ( ) : List |
Read triggers from username/triggers/
|
|
SaveTrigger ( ) : void |
Save current trigger to file
|
|
onLoad ( ) : bool | ||
onLoggedOff ( ) : bool | ||
onLoggedOn ( ) : bool | ||
respondToAnnouncement ( |
||
respondToBan ( |
||
respondToChatInvite ( |
||
respondToChatMessage ( |
||
respondToDisconnect ( |
||
respondToEnteredMessage ( |
||
respondToFriendMessage ( |
||
respondToFriendRequest ( |
||
respondToKick ( |
||
respondToLeftMessage ( |
||
respondToSentMessage ( |
||
respondToTradeOffer ( int number ) : bool | ||
respondToTradeProposal ( |
||
respondToTradeSession ( |
Method | Description | |
---|---|---|
CheckIgnores ( |
Check to see if the user or room is on the ignore list
|
|
CheckRoom ( |
Check to see if the room is on the whitelist
|
|
CheckUser ( |
Check to see if the user is on the whitelist
|
|
DisableForTimeout ( ) : void |
Disables bot reply for the duration of the timeout
|
|
IfError ( string cbn, string name, string error ) : string |
If there is an error, log it easily
|
|
RandomRoll ( ) : bool |
Randomly decides if a message will be sent
|
|
SendMessageAfterDelay ( |
Sends a message to the specified SteamID
|
|
StripCommand ( string message, string command ) : string[] |
Splits the message and returns an array of words
|
Method | Description | |
---|---|---|
AfterTimer_Timeout ( object sender, System.Timers.ElapsedEventArgs e ) : void | ||
TimerElapsed_Message ( object sender, System.Timers.ElapsedEventArgs e, |
public BaseTrigger ( TriggerType type, string name, |
||
type | TriggerType | |
name | string | |
options | ||
return | System |
protected CheckIgnores ( |
||
toID | ||
fromID | ||
return | bool |
protected CheckRoom ( |
||
toID | ||
return | bool |
protected CheckUser ( |
||
fromID | ||
return | bool |
protected IfError ( string cbn, string name, string error ) : string | ||
cbn | string | |
name | string | |
error | string | |
return | string |
public OnAnnouncement ( |
||
groupID | ||
headline | string | |
haveEatenEvent | bool | |
return | bool |
public OnBannedChat ( |
||
roomID | ||
bannedID | ||
bannerID | ||
haveSentMessage | bool | |
return | bool |
public OnChatInvite ( |
||
roomID | ||
roomName | string | |
inviterID | ||
return | bool |
public OnChatMessage ( |
||
roomID | ||
chatterID | ||
message | string | |
haveSentMessage | bool | |
return | bool |
public OnDisconnected ( |
||
roomID | ||
userID | ||
haveSentMessage | bool | |
return | bool |
public OnEnteredChat ( |
||
roomID | ||
userID | ||
haveSentMessage | bool | |
return | bool |
public OnFriendMessage ( |
||
userID | ||
message | string | |
haveSentMessage | bool | |
return | bool |
public OnFriendRequest ( |
||
userID | ||
return | bool |
public OnKickedChat ( |
||
roomID | ||
kickedID | ||
kickerID | ||
haveSentMessage | bool | |
return | bool |
public OnLeftChat ( |
||
roomID | ||
userID | ||
return | bool |
public OnSentMessage ( |
||
toID | ||
message | string | |
haveSentMessage | bool | |
return | bool |
public OnTradeOffer ( int number, bool haveEatenEvent ) : bool | ||
number | int | |
haveEatenEvent | bool | |
return | bool |
public OnTradeProposed ( |
||
tradeID | ||
userID | ||
haveEatenEvent | bool | |
return | bool |
public OnTradeSession ( |
||
userID | ||
haveEatenEvent | bool | |
return | bool |
protected SendMessageAfterDelay ( |
||
steamID | ||
message | string | |
room | bool | |
return | void |
protected StripCommand ( string message, string command ) : string[] | ||
message | string | |
command | string | |
return | string[] |
public respondToAnnouncement ( |
||
groupID | ||
headline | string | |
return | bool |
public respondToBan ( |
||
roomID | ||
bannedId | ||
bannerId | ||
return | bool |
public respondToChatInvite ( |
||
roomID | ||
roomName | string | |
inviterId | ||
return | bool |
public respondToChatMessage ( |
||
roomID | ||
chatterId | ||
message | string | |
return | bool |
public respondToDisconnect ( |
||
roomID | ||
userID | ||
return | bool |
public respondToEnteredMessage ( |
||
roomID | ||
userID | ||
return | bool |
public respondToFriendMessage ( |
||
userID | ||
message | string | |
return | bool |
public respondToFriendRequest ( |
||
userID | ||
return | bool |
public respondToKick ( |
||
roomID | ||
kickedId | ||
kickerId | ||
return | bool |
public respondToLeftMessage ( |
||
roomID | ||
userID | ||
return | bool |
public respondToSentMessage ( |
||
toID | ||
message | string | |
return | bool |
public respondToTradeOffer ( int number ) : bool | ||
number | int | |
return | bool |
public respondToTradeProposal ( |
||
tradeId | ||
steamId | ||
return | bool |
public respondToTradeSession ( |
||
userID | ||
return | bool |