[TECHBOT]

Welcome Jira !

svn path=/trunk/irc/; revision=2046
This commit is contained in:
Sylvain Petreolle 2013-06-13 17:16:34 +00:00
parent 22ba3eb42a
commit 163499e086
4 changed files with 12 additions and 21 deletions

View File

@ -6,8 +6,6 @@ namespace TechBot.Commands.Common
{
public abstract class BugCommand : Command
{
// private string m_BugID = null;
public BugCommand()
{
}
@ -22,18 +20,11 @@ namespace TechBot.Commands.Common
{
if (string.IsNullOrEmpty(BugID))
{
Say("Please provide a valid bug number.");
Say("Please provide a bug number.");
}
else
{
try
{
Say(BugUrl.ToString(), Int32.Parse(BugID));
}
catch (Exception)
{
Say("{0} is not a valid bug number.", BugID);
}
Say(BugUrl.ToString(), BugID);
}
}

View File

@ -6,7 +6,7 @@ using TechBot.Library;
namespace TechBot.Commands.Common
{
[Command("rosbug", Help = "!rosbug <number>", Description = "Will give you a link to the reqested ReactOS bug")]
[Command("jira", Help = "!jira <number>", Description = "Will give you a link to the requested ReactOS bug")]
class ReactOSBugUrl : BugCommand
{
public ReactOSBugUrl()
@ -15,7 +15,7 @@ namespace TechBot.Commands.Common
protected override Uri BugUrl
{
get { return new Uri("http://www.reactos.org/bugzilla/show_bug.cgi?id={0}"); }
get { return new Uri("http://jira.reactos.org/browse/{0}"); }
}
}
}

View File

@ -3,16 +3,16 @@
<Profiles />
<Settings>
<Setting Name="NtStatusXml" Type="System.String" Scope="Application">
<Value Profile="(Default)">C:\Ros\current\irc\TechBot\Resources\ntstatus.xml</Value>
<Value Profile="(Default)">./Resources/ntstatus.xml</Value>
</Setting>
<Setting Name="WinErrorXml" Type="System.String" Scope="Application">
<Value Profile="(Default)">C:\Ros\current\irc\TechBot\Resources\winerror.xml</Value>
<Value Profile="(Default)">./Resources/winerror.xml</Value>
</Setting>
<Setting Name="HResultXml" Type="System.String" Scope="Application">
<Value Profile="(Default)">C:\Ros\current\irc\TechBot\Resources\hresult.xml</Value>
<Value Profile="(Default)">./Resources/hresult.xml</Value>
</Setting>
<Setting Name="WMXml" Type="System.String" Scope="Application">
<Value Profile="(Default)">C:\Ros\current\irc\TechBot\Resources\wm.xml</Value>
<Value Profile="(Default)">./Resources/Resources\wm.xml</Value>
</Setting>
<Setting Name="SVNRoot" Type="System.String" Scope="Application">
<Value Profile="(Default)">svn://svn.reactos.org/reactos/trunk</Value>

View File

@ -8,16 +8,16 @@
<applicationSettings>
<TechBot.Library.Settings>
<setting name="NtStatusXml" serializeAs="String">
<value>C:\Ros\current\irc\TechBot\Resources\ntstatus.xml</value>
<value>./Resources/ntstatus.xml</value>
</setting>
<setting name="WinErrorXml" serializeAs="String">
<value>C:\Ros\current\irc\TechBot\Resources\winerror.xml</value>
<value>./Resources/winerror.xml</value>
</setting>
<setting name="HResultXml" serializeAs="String">
<value>C:\Ros\current\irc\TechBot\Resources\hresult.xml</value>
<value>./Resources/hresult.xml</value>
</setting>
<setting name="WMXml" serializeAs="String">
<value>C:\Ros\current\irc\TechBot\Resources\wm.xml</value>
<value>./Resources/Resources\wm.xml</value>
</setting>
<setting name="SVNRoot" serializeAs="String">
<value>svn://svn.reactos.org/reactos/trunk</value>