mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-25 14:06:41 +01:00
Fixes Discord Private Message Commands (#44)
* Fix log name * Fix these line endings * Fix Discord private messages
This commit is contained in:
@@ -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":
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user