diff --git a/src/CaiBot/MessageHandler.cs b/src/CaiBot/MessageHandler.cs index 788d67a3..fb5890bc 100644 --- a/src/CaiBot/MessageHandler.cs +++ b/src/CaiBot/MessageHandler.cs @@ -121,6 +121,7 @@ public static async Task HandleMessageAsync(string receivedData) var cmd = (string) jsonObject["cmd"]!; CaiBotPlayer tr = new(); Commands.HandleCommand(tr, cmd); + TShock.Utils.SendLogs($"[CaiBot] `{(string)jsonObject["at"]!}`来自群`{(long)jsonObject["group"]}`执行了: {(string) jsonObject["cmd"]!}",Microsoft.Xna.Framework.Color.PaleVioletRed); result = new RestObject { { "type", "cmd" }, diff --git a/src/CaiBot/Plugin.cs b/src/CaiBot/Plugin.cs index 192bd6c3..48f7e9c1 100644 --- a/src/CaiBot/Plugin.cs +++ b/src/CaiBot/Plugin.cs @@ -1,8 +1,4 @@ -//代码来源:https://github.com/chi-rei-den/PluginTemplate/blob/master/src/PluginTemplate/Program.cs -//恋恋的TShock插件模板,有改动(为了配合章节名) -//来自棱镜的插件教程 - -using Newtonsoft.Json; +using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Net; using System.Net.WebSockets; @@ -22,7 +18,7 @@ public class Plugin : TerrariaPlugin public override string Author => "Cai,羽学"; public override string Description => "CaiBot机器人的适配插件"; public override string Name => "CaiBotPlugin"; - public static readonly Version VersionNum = new(2024, 9, 8, 1); //日期+版本号(0,1,2...) + public static readonly Version VersionNum = new(2024, 9, 16, 1); //日期+版本号(0,1,2...) public override Version Version => VersionNum; //插件的构造器 diff --git a/src/CaiBot/README.md b/src/CaiBot/README.md index 53eae44e..a2aa0a81 100644 --- a/src/CaiBot/README.md +++ b/src/CaiBot/README.md @@ -13,6 +13,7 @@ ## 更新日志 ``` +v2024.9.16.1 远程指令日志记录执行群和执行者 v2024.9.8.1 新增插件列表功能 v2024.8.25.1 发送base64前用gzip压缩 v2024.8.2.1 添加被动添加BOT