Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Jul 17, 2023
2 parents 842a67a + b411153 commit 803c23d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions XinjingdailyBot.Command/AdminCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,11 @@ async Task<string> exec()
return "找不到指定用户";
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return "你有事?";
}

if (targetUser.Id == dbUser.Id)
{
return "无法对自己进行操作";
Expand Down Expand Up @@ -277,6 +282,11 @@ async Task<string> exec()
{
return "找不到指定用户";
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return "你有事?";
}

if (targetUser.Id == dbUser.Id)
{
Expand Down Expand Up @@ -372,6 +382,11 @@ async Task<string> exec()
return "找不到指定用户";
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return "你有事?";
}

if (targetUser.Id == dbUser.Id)
{
return "无法对自己进行操作";
Expand Down Expand Up @@ -598,6 +613,11 @@ async Task<string> exec()
return "找不到指定用户";
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return "你有事?";
}

if (targetUser.UserID == dbUser.UserID)
{
return "为什么有人想要自己回复自己?";
Expand Down Expand Up @@ -1084,6 +1104,11 @@ public async Task SetUserGroup(Users dbUser, Message message, string[] args)
return ("该用户已被封禁, 无法执行此操作", null);
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return ("你有事?", null);
}

if (targetUser.Id == dbUser.Id)
{
return ("无法对自己进行操作", null);
Expand Down Expand Up @@ -1128,6 +1153,11 @@ async Task<string> exec()
return "找不到指定用户";
}

if (targetUser.Id == _channelService.BotUser.Id)
{
return "你有事?";
}

if (targetUser.Id == dbUser.Id)
{
return "无法对自己进行操作";
Expand Down

0 comments on commit 803c23d

Please sign in to comment.