Skip to content

Commit

Permalink
feat 添加延时
Browse files Browse the repository at this point in the history
  • Loading branch information
chr233 committed Nov 23, 2022
1 parent a51f9b9 commit b2f0962
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ASFEnhance/Event/Command.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ internal static class Command
foreach (uint index in door_indexs)
{
await WebRequest.DoEventTask(bot, token, index).ConfigureAwait(false);
await Task.Delay(200).ConfigureAwait(false);

This comment has been minimized.

Copy link
@xTCry

xTCry Nov 23, 2022

Contributor

⚙️ Can you make this value configurable? And it is better to make all the parameters with a delay configurable.
If you can't do it this year, I can try create a PR

}

return bot.FormatBotResponse("Done!");
Expand Down

0 comments on commit b2f0962

Please sign in to comment.