Skip to content

Commit 56ca0d2

Browse files
committed
Merge branch 'dev' of https://github.com/Bardaky/Fritz.StreamTools into Bardaky-dev
2 parents 289781c + e2e8824 commit 56ca0d2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

Fritz.Chatbot/Commands/AttentionCommand.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public AttentionCommand(IAttentionClient client, IConfiguration configuration)
2323

2424
public string Description => "Play audio queue to divert attention to chat";
2525

26-
public TimeSpan? Cooldown => TimeSpan.FromSeconds(5);
26+
public TimeSpan? Cooldown => TimeSpan.Parse(Configuration["FritzBot:AttentionCommand:Cooldown"]);
2727

2828
public async Task Execute(IChatService chatService, string userName, ReadOnlyMemory<char> rhs)
2929
{

Fritz.StreamTools/appsettings.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747
"RepeatCount": 3
4848
},
4949
"AttentionCommand": {
50-
"TemplateText": "Trying to get the attention of @csharpfritz for @{0}!"
50+
"TemplateText": "Trying to get the attention of @csharpfritz for @{0}!",
51+
"Cooldown": "00:10:00"
5152
}
5253
},
5354
"FollowerGoal": {

0 commit comments

Comments
 (0)