Skip to content

Commit

Permalink
Merge pull request #71 from Cyberboss/MassageGroups
Browse files Browse the repository at this point in the history
Adds "prs" chat command
  • Loading branch information
Cyberboss authored Jun 23, 2017
2 parents fbc8bbb + 80bb43d commit 6b8caf2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions TGServerService/Chat.cs
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,16 @@ string ChatCommand(string command, string speaker, string channel, IList<string>
if (parameters.Count < 1)
return "Usage: namecheck <target>";
return NameCheck(parameters[0], speaker);
case "prs":
var PRs = MergedPullRequests(out res);
if (PRs == null)
return res;
if (PRs.Count == 0)
return "None!";
res = "";
foreach(var I in PRs)
res += I.Number + " ";
return res;
case "version":
return TGServerService.Version;
case "kek":
Expand Down

0 comments on commit 6b8caf2

Please sign in to comment.