浏览代码

Modified Wolfram Alpha results beautifier.

tags/3.1.0
Teknikode 4 年前
父节点
当前提交
b1301ff307
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3
    2
      Modules/Wolfram Alpha/Wolfram_Alpha.cs

+ 3
- 2
Modules/Wolfram Alpha/Wolfram_Alpha.cs 查看文件

@@ -53,9 +53,10 @@ namespace Combot.Modules.Plugins
}
char[] tails = {';', ' '};
resultMessage = resultMessage
.Replace(Environment.NewLine, "; ")
.Replace("\r\n", "; ")
.Replace("\n", "; ")
.Replace(" | ", ", ")
.Replace(" | ", "; ")
.Replace(" | ", ": ")
.TrimEnd(tails);
SendResponse(command.MessageType, command.Location, command.Nick.Nickname, queryMessage);
SendResponse(command.MessageType, command.Location, command.Nick.Nickname, resultMessage);

正在加载...
取消
保存