Skip to content

Commit

Permalink
feat 新增EVENT命令
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Oct 19, 2022
1 parent 3ae3525 commit a5ce01f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions ASFEnhance/ASFEnhance.cs
Original file line number Diff line number Diff line change
Expand Up @@ -170,9 +170,9 @@ private async Task<string> ResponseCommand(Bot bot, EAccess access, string messa
switch (args[0].ToUpperInvariant())
{
//Event
//case "EVENT" when access >= EAccess.Operator:
//case "E" when access >= EAccess.Operator:
//return await Event.Command.ResponseEvent(bot).ConfigureAwait(false);
case "EVENT" when access >= EAccess.Operator:
case "E" when access >= EAccess.Operator:
return await Event.Command.ResponseEvent(bot).ConfigureAwait(false);

//Shortcut
case "P":
Expand Down Expand Up @@ -304,9 +304,9 @@ private async Task<string> ResponseCommand(Bot bot, EAccess access, string messa
switch (args[0].ToUpperInvariant())
{
//Event
//case "EVENT" when access >= EAccess.Operator:
//case "E" when access >= EAccess.Operator:
// return await Event.Command.ResponseEvent(Utilities.GetArgsAsText(args, 1, ",")).ConfigureAwait(false);
case "EVENT" when access >= EAccess.Operator:
case "E" when access >= EAccess.Operator:
return await Event.Command.ResponseEvent(Utilities.GetArgsAsText(args, 1, ",")).ConfigureAwait(false);

//Shortcut
case "AL":
Expand Down
4 changes: 2 additions & 2 deletions ASFEnhance/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using System.Reflection;

[assembly: System.CLSCompliant(false)]
[assembly: AssemblyVersion("1.6.15.0")]
[assembly: AssemblyFileVersion("1.6.15.0")]
[assembly: AssemblyVersion("1.6.16.0")]
[assembly: AssemblyFileVersion("1.6.16.0")]

[assembly: AssemblyCopyright("Copyright © 2022 Chr_")]
[assembly: AssemblyProduct("ASFEnhance")]
Expand Down

0 comments on commit a5ce01f

Please sign in to comment.