-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed a long-standing issue where if an exception happened while loading plugins, the bot would hang. Turns out, we weren't cleaning up some things properly. Specifically, EventScheduler. This has been resolved. * Added new Regression test to ensure the process exits if an assembly is missing. * We throw an exception if an assembly fails to load or init. Its just easier that way. * EventSchedule does not start until the IRC Connection is started. * Updated Regression Test Fixtures such that it is able to not wait for Chaskis to connect.
- Loading branch information
1 parent
d6081d0
commit 39829ba
Showing
14 changed files
with
249 additions
and
125 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 24 additions & 0 deletions
24
Chaskis/RegressionTests/Environments/MissingAssemblyEnvironment/IrcConfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<ircbotconfig> | ||
<server>localhost</server> | ||
<channels> | ||
<channel>#chaskistest</channel> | ||
<channel>#chaskistest2</channel> | ||
</channels> | ||
<port>{%port%}</port> | ||
<username>chaskisbot</username> | ||
<nick>chaskisbot</nick> | ||
<realname>Chaskis Test Bot</realname> | ||
<password></password> | ||
<ratelimit>100</ratelimit> | ||
<quitmessage>I'm going down!</quitmessage> | ||
<admins> | ||
<admin>adminuser</admin> | ||
</admins> | ||
<bridgebots> | ||
<bridgebot> | ||
<botname>xforever\d*</botname> | ||
<botregex><![CDATA[^<(?<bridgeUser>\w+)>\s+(?<bridgeMessage>.+)]]></botregex> | ||
</bridgebot> | ||
</bridgebots> | ||
</ircbotconfig> |
5 changes: 5 additions & 0 deletions
5
Chaskis/RegressionTests/Environments/MissingAssemblyEnvironment/PluginConfig.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pluginconfig> | ||
<assembly path="{%chaskispath%}/Plugins/ConsoleOut/ConsoleOut.dll" /> | ||
<assembly path="does_not_exist.dll" /> | ||
</pluginconfig> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.