代码清理
This commit is contained in:
parent
1582fb0eb3
commit
45ad0e3b47
@ -7,7 +7,6 @@ using Milimoe.OneBot.Framework.Utility;
|
|||||||
using Milimoe.OneBot.Model.Content;
|
using Milimoe.OneBot.Model.Content;
|
||||||
using Milimoe.OneBot.Model.Message;
|
using Milimoe.OneBot.Model.Message;
|
||||||
using Milimoe.OneBot.Model.Other;
|
using Milimoe.OneBot.Model.Other;
|
||||||
using Milimoe.OneBot.Utility;
|
|
||||||
using Milimoe.RainBOT.Command;
|
using Milimoe.RainBOT.Command;
|
||||||
using Group = Milimoe.OneBot.Model.Other.Group;
|
using Group = Milimoe.OneBot.Model.Other.Group;
|
||||||
|
|
||||||
|
|||||||
@ -122,7 +122,7 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
switch (group.ToLower())
|
switch (group.ToLower())
|
||||||
{
|
{
|
||||||
case "repeatignore":
|
case "repeatignore":
|
||||||
list = [..RepeatIgnore];
|
list = [.. RepeatIgnore];
|
||||||
break;
|
break;
|
||||||
case "callbrotherqqignore":
|
case "callbrotherqqignore":
|
||||||
list = CallBrotherQQIgnore.Select(x => x.ToString()).ToList();
|
list = CallBrotherQQIgnore.Select(x => x.ToString()).ToList();
|
||||||
|
|||||||
@ -5,10 +5,10 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
{
|
{
|
||||||
public class OSMCore
|
public class OSMCore
|
||||||
{
|
{
|
||||||
public const string version = "v1.0";
|
public const string version = "v1.1";
|
||||||
public const string version2 = "Patch12 V1";
|
public const string version2 = "Beta1";
|
||||||
|
|
||||||
public static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt on {GetBuiltTime(Assembly.GetExecutingAssembly().Location)}\r\nSee: https://github.com/milimoe";
|
public static string Info => $"OSM Core {version} {version2}\r\nAuthor: Milimoe\r\nBuilt at {GetBuiltTime(Assembly.GetExecutingAssembly().Location)}\r\nSee: https://github.com/milimoe";
|
||||||
|
|
||||||
public static string GetBuiltTime(string dll_name)
|
public static string GetBuiltTime(string dll_name)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -232,7 +232,7 @@ namespace Milimoe.RainBOT.Settings
|
|||||||
string msg;
|
string msg;
|
||||||
if (islist)
|
if (islist)
|
||||||
{
|
{
|
||||||
msg = list.Count > 0 ? "列表" + part + "拥有以下成员:" + "\r\n"+ string.Join("\r\n", list) : "此列表不存在或没有任何成员。";
|
msg = list.Count > 0 ? "列表" + part + "拥有以下成员:" + "\r\n" + string.Join("\r\n", list) : "此列表不存在或没有任何成员。";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user