Fixes Discord Private Message Commands (#44)

* Fix log name

* Fix these line endings

* Fix Discord private messages
This commit is contained in:
Jordan Brown
2017-06-12 12:04:23 +02:00
committed by AnturK
parent 96312be367
commit ca1c92b48c
3 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -123,7 +123,7 @@ namespace TGServerService
//Do stuff with words that were spoken to us
string ChatCommand(string command, string speaker, string channel, IList<string> parameters)
{
TGServerService.WriteLog(String.Format("IRC Command from {0}: {1} {2}", speaker, command, String.Join(" ", parameters)));
TGServerService.WriteLog(String.Format("Chat Command from {0}: {1} {2}", speaker, command, String.Join(" ", parameters)));
switch (command)
{
case "check":
+1 -1
View File
@@ -140,7 +140,7 @@ namespace TGServerService
{
var tasks = new List<Task>();
var Config = Properties.Settings.Default;
var channel = Convert.ToUInt32(channelname);
var channel = Convert.ToUInt64(channelname);
if (SeenPrivateChannels.ContainsKey(channel))
SeenPrivateChannels[channel].SendMessage(message).Wait();
else
+5 -5
View File
@@ -72,7 +72,7 @@ namespace TGServiceInterface
/// <returns>true if the repository is valid, false otherwise</returns>
[OperationContract]
bool Exists();
/// <summary>
/// Deletes whatever may be left over and clones the repo at remote and checks out branch master
/// Will move config and data dirs to a backup location if they exist
@@ -91,7 +91,7 @@ namespace TGServiceInterface
/// <returns>The sha of the current HEAD on success, null on failure</returns>
[OperationContract]
string GetHead(out string error);
/// <summary>
/// Gets the name of the current branch
/// </summary>
@@ -99,7 +99,7 @@ namespace TGServiceInterface
/// <returns>The name of the current branch on success, null on failure</returns>
[OperationContract]
string GetBranch(out string error);
/// <summary>
/// Gets the url of the current origin
/// </summary>
@@ -107,7 +107,7 @@ namespace TGServiceInterface
/// <returns>The url of the current origin on success, null on failure</returns>
[OperationContract]
string GetRemote(out string error);
/// <summary>
/// Hard checks out the passed object name
/// </summary>
@@ -131,7 +131,7 @@ namespace TGServiceInterface
/// <returns>null on success, error message on failure</returns>
[OperationContract]
string Reset(bool tracked);
/// <summary>
/// Merges the target pull request into the current branch if the remote is a github repository
/// </summary>