@@ -22,8 +22,6 @@ public class BaseTrigger
2222
2323 public bool ReplyEnabled = true ;
2424
25- #region constructors
26-
2725 public BaseTrigger ( TriggerType type , string name , TriggerOptionsBase options )
2826 {
2927 if ( options . AntiSpamTriggerOptions != null ) OptionsType = OptionType . AntiSpamTrigger ;
@@ -40,145 +38,6 @@ public BaseTrigger(TriggerType type, string name, TriggerOptionsBase options)
4038 Options = options ;
4139 }
4240
43- /*
44- /// <summary>
45- /// Constructor for ChatCommand triggers
46- /// </summary>
47- /// <param name="type">TriggerType</param>
48- /// <param name="name">Name of the trigger</param>
49- /// <param name="chatCommand">ChatCommand object with options</param>
50- public BaseTrigger(TriggerType type, string name, ChatCommand chatCommand)
51- {
52- OptionsType = OptionType.ChatCommand;
53- Type = type;
54- Name = name;
55- Options = new TriggerOptionsBase
56- {
57- Type = type,
58- Name = name,
59- ChatCommand = chatCommand
60- };
61- }
62-
63- /// <summary>
64- /// Constructor for ChatReply triggers
65- /// </summary>
66- /// <param name="type">TriggerType</param>
67- /// <param name="name">Name of the trigger</param>
68- /// <param name="chatReply">ChatReply object with options</param>
69- public BaseTrigger(TriggerType type, string name, ChatReply chatReply)
70- {
71- OptionsType = OptionType.ChatReply;
72- Type = type;
73- Name = name;
74- Options = new TriggerOptionsBase
75- {
76- Type = type,
77- Name = name,
78- ChatReply = chatReply
79- };
80- }
81-
82- /// <summary>
83- /// Constructor for NoCommand triggers
84- /// </summary>
85- /// <param name="type">TriggerType</param>
86- /// <param name="name">Name of teh trigger</param>
87- /// <param name="noCommand">NoCommand object with options</param>
88- public BaseTrigger(TriggerType type, string name, NoCommand noCommand)
89- {
90- OptionsType = OptionType.NoCommand;
91- Type = type;
92- Name = name;
93- Options = new TriggerOptionsBase
94- {
95- Type = type,
96- Name = name,
97- NoCommand = noCommand
98- };
99- }
100-
101- /// <summary>
102- /// Constructor for ChatCommandApi triggers
103- /// </summary>
104- /// <param name="type">TriggerType</param>
105- /// <param name="name">Name of the trigger</param>
106- /// <param name="chatCommandApi">ChatCommandApi object with options</param>
107- public BaseTrigger(TriggerType type, string name, ChatCommandApi chatCommandApi)
108- {
109- OptionsType = OptionType.ChatCommandAPI;
110- Type = type;
111- Name = name;
112- Options = new TriggerOptionsBase
113- {
114- Type = type,
115- Name = name,
116- ChatCommandApi = chatCommandApi
117- };
118- }
119-
120- /// <summary>
121- /// Constructor for TriggerLists triggers
122- /// </summary>
123- /// <param name="type">TriggerType</param>
124- /// <param name="name">Name of the trigger</param>
125- /// <param name="tl">TriggerLists object with options</param>
126- public BaseTrigger(TriggerType type, string name, TriggerLists tl)
127- {
128- OptionsType = OptionType.JustLists;
129- Type = type;
130- Name = name;
131- Options = new TriggerOptionsBase
132- {
133- Type = type,
134- Name = name,
135- TriggerLists = tl
136- };
137- }
138-
139- /// <summary>
140- /// Constructor for AntiSpamTrigger
141- /// </summary>
142- /// <param name="type"></param>
143- /// <param name="name"></param>
144- /// <param name="options"></param>
145- public BaseTrigger(TriggerType type, string name, AntiSpamTriggerOptions options)
146- {
147- OptionsType = OptionType.AntiSpamTrigger;
148- Type = type;
149- Name = name;
150- Options = new TriggerOptionsBase
151- {
152- Type = type,
153- Name = name,
154- AntiSpamTriggerOptions = options
155- };
156- }
157-
158- /// <summary>
159- /// Constructor for DiscordTrigger
160- /// </summary>
161- /// <param name="type"></param>
162- /// <param name="name"></param>
163- /// <param name="options"></param>
164- public BaseTrigger(TriggerType type, string name, DiscordOptions options)
165- {
166- OptionsType = OptionType.DiscordTrigger;
167- Type = type;
168- Name = name;
169- Options = new TriggerOptionsBase
170- {
171- Type = type,
172- Name = name,
173- DiscordOptions = options
174- };
175- }
176-
177- */
178-
179- #endregion
180-
181-
18241 /// <summary>
18342 /// If there is an error, log it easily
18443 /// </summary>
@@ -743,7 +602,7 @@ public virtual bool OnLeftChat(SteamID roomID, SteamID userID)
743602 {
744603 try
745604 {
746- bool messageSent = respondToEnteredMessage ( roomID , userID ) ;
605+ bool messageSent = respondToLeftMessage ( roomID , userID ) ;
747606 if ( messageSent )
748607 {
749608 DisableForTimeout ( ) ;
0 commit comments