Mirai-彩六查询
基于Mirai的简易彩虹六号战绩查询,新手小白学习做的项目
使用方法
- 下载插件放到
plugin
目录下 - 初次加载后去
config
下配置Config.yml
(https://statsdb.net/ 下获取API,详见Readme) - 启动运行
命令
/r6stats id [昵称] 速览数据
/r6stats his [昵称] 查看历史数据
基于Mirai的简易彩虹六号战绩查询,新手小白学习做的项目
plugin
目录下config
下配置Config.yml
(https://statsdb.net/ 下获取API,详见Readme)/r6stats id [昵称] 速览数据
/r6stats his [昵称] 查看历史数据
输入“#steam查询 潜渊症”没反应
输入“#steam查询 潜渊”报以下错误
[Steam价格查询 异常抛出] Out of memory. at System.Drawing.Image.FromFile(String filename, Boolean useEmbeddedColorManagement)
at System.Drawing.Image.FromFile(String filename)
at me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos.Model.GameInfo.Result.DrawSteamImg() in E:\酷Q机器人插件开发\Steam 价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos\Model\GameInfo.cs:line 457
at me.cqp.luohuaming.SteamHeyboxQuery.Code.OrderFunctions.NameQuery.CallGameInfo(Int32 appId, SendText sendText) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\OrderFunctions\NameQuery.cs:line 98
at me.cqp.luohuaming.SteamHeyboxQuery.Code.OrderFunctions.NameQuery.Progress(CQGroupMessageEventArgs e) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\OrderFunctions\NameQuery.cs:line 36
at me.cqp.luohuaming.SteamHeyboxQuery.Code.Event_GroupMessage.GroupMessage(CQGroupMessageEventArgs e) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\Event_GroupMessage.cs:line 23
查某些游戏(如彩六)的时候会出错
2022-05-17 18:27:51 I/MiraiNative: [Steam价格查询 异常抛出] Could not convert string to integer: 65.00. Path 'result.items[2].info.price.lowest_price', line 1, position 4228. at Newtonsoft.Json.JsonReader.ReadInt32String(String s)
at Newtonsoft.Json.JsonTextReader.FinishReadQuotedNumber(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ReadNumberValue(ReadType readType)
at Newtonsoft.Json.JsonTextReader.ReadAsInt32()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos.WebApi.SearchGame.GetGameInfoFullJson() in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos\WebApi\SearchGame.cs:line 19
at me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos.WebApi.SearchGame.Get() in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.PublicInfos\WebApi\SearchGame.cs:line 24
at me.cqp.luohuaming.SteamHeyboxQuery.Code.OrderFunctions.NameQuery.CallSearch(String targetName, SendText sendText) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\OrderFunctions\NameQuery.cs:line 73
at me.cqp.luohuaming.SteamHeyboxQuery.Code.OrderFunctions.NameQuery.Progress(CQGroupMessageEventArgs e) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\OrderFunctions\NameQuery.cs:line 40
at me.cqp.luohuaming.SteamHeyboxQuery.Code.Event_GroupMessage.GroupMessage(CQGroupMessageEventArgs e) in E:\酷Q机器人插件开发\Steam价格查询\Steam-Heybox-query\me.cqp.luohuaming.SteamHeyboxQuery.Code\Event_GroupMessage.cs:line 23
@yuudachi @HaMan 不不不,事实是我技术力不够,实际上填的是一串已经解码的字符串。
在https://developers.statsdb.net/reference下,点try然后点execute运行一下,会拿到一串已经解码的字符串,填这个