mirror of
https://github.com/reactos/reactos.git
synced 2026-06-08 17:02:56 +08:00
Implement "!bug <number>" command.
svn path=/trunk/; revision=20165
This commit is contained in:
@@ -12,5 +12,6 @@
|
||||
<add key="HresultXml" value="C:\IRC\TechBot\hresult.xml" />
|
||||
<add key="WmXml" value="C:\IRC\TechBot\wm.xml" />
|
||||
<add key="SvnCommand" value="svn co svn://svn.reactos.com/trunk/reactos" />
|
||||
<add key="BugUrl" value="www.reactos.org/bugzilla/show_bug.cgi?id={0}" />
|
||||
</appSettings>
|
||||
</configuration>
|
||||
|
||||
@@ -158,6 +158,18 @@ namespace TechBot.Console
|
||||
}
|
||||
}
|
||||
|
||||
private static string BugUrl
|
||||
{
|
||||
get
|
||||
{
|
||||
string optionName = "BugUrl";
|
||||
string s = ConfigurationSettings.AppSettings[optionName];
|
||||
VerifyRequiredOption(optionName,
|
||||
s);
|
||||
return s;
|
||||
}
|
||||
}
|
||||
|
||||
private static void RunIrcService()
|
||||
{
|
||||
IrcService ircService = new IrcService(IRCServerHostName,
|
||||
@@ -170,7 +182,8 @@ namespace TechBot.Console
|
||||
WinerrorXml,
|
||||
HresultXml,
|
||||
WmXml,
|
||||
SvnCommand);
|
||||
SvnCommand,
|
||||
BugUrl);
|
||||
ircService.Run();
|
||||
}
|
||||
|
||||
@@ -190,7 +203,8 @@ namespace TechBot.Console
|
||||
WinerrorXml,
|
||||
HresultXml,
|
||||
WmXml,
|
||||
SvnCommand);
|
||||
SvnCommand,
|
||||
BugUrl);
|
||||
service.Run();
|
||||
while (true)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user