diff --git a/plugins/QQStatPlugin/QQStatPlugin.cs b/plugins/QQStatPlugin/QQStatPlugin.cs index 70a8e5b49..a3085d960 100644 --- a/plugins/QQStatPlugin/QQStatPlugin.cs +++ b/plugins/QQStatPlugin/QQStatPlugin.cs @@ -6,14 +6,13 @@ using Konata.Core; using Konata.Core.Events.Model; using Konata.Core.Interfaces.Api; -using QQBotHub.Sdk.IPlugins; using QQStatPlugin.Utils; using Konata.Core.Message.Model; using Konata.Core.Common; using System.Text; -using QQBotHub.Sdk; using Konata.Core.Message; using System.Collections.Generic; +using KonataPlugin; namespace QQStatPlugin { @@ -201,21 +200,21 @@ public async Task ExecuteAsync() try { SettingsModel settingsModel = PluginCore.PluginSettingsModelFactory.Create(nameof(QQStatPlugin)); - if (QQBotStore.Bot != null && QQBotStore.Bot.IsOnline()) + if (KonataBotStore.Bot != null && KonataBotStore.Bot.IsOnline()) { - var groupList = await QQBotStore.Bot.GetGroupList(forceUpdate: true); + var groupList = await KonataBotStore.Bot.GetGroupList(forceUpdate: true); foreach (var group in groupList) { if (settingsModel.ChartGroups.Contains(group.Uin.ToString())) { - SendStackedArea((QQBotStore.Bot, null), message: "#折线", groupUin: group.Uin, settingsModel: settingsModel); + SendStackedArea((KonataBotStore.Bot, null), message: "#折线", groupUin: group.Uin, settingsModel: settingsModel); List baseChains = new List() { TextChain.Create("发送 #帮助 获取更多信息") }; - await QQBotStore.Bot.SendGroupMessage(groupUin: group.Uin, baseChains.ToArray()); + await KonataBotStore.Bot.SendGroupMessage(groupUin: group.Uin, baseChains.ToArray()); } } diff --git a/plugins/QQStatPlugin/QQStatPlugin.csproj b/plugins/QQStatPlugin/QQStatPlugin.csproj index c40c7292a..d079bb7c2 100644 --- a/plugins/QQStatPlugin/QQStatPlugin.csproj +++ b/plugins/QQStatPlugin/QQStatPlugin.csproj @@ -14,16 +14,7 @@ --> - - - - - - runtime - - - - + false runtime diff --git a/plugins/QQStatPlugin/info.json b/plugins/QQStatPlugin/info.json index e8215fec0..f13afebe3 100644 --- a/plugins/QQStatPlugin/info.json +++ b/plugins/QQStatPlugin/info.json @@ -3,6 +3,6 @@ "DisplayName": "QQ消息统计分析", "Description": "QQ消息等数据收集, 分析", "Author": "yiyun", - "Version": "0.4.0", + "Version": "1.0.0", "SupportedVersions": [ "0.0.1" ] } \ No newline at end of file