Skip to content

Commit b84a9d3

Browse files
committed
Added new soundfx
1 parent 03ad9e4 commit b84a9d3

File tree

4 files changed

+39
-5
lines changed

4 files changed

+39
-5
lines changed

.editorconfig

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ insert_final_newline = true
1111
csharp_style_var_for_built_in_types = true:error
1212
csharp_style_var_when_type_is_apparent = true:error
1313
csharp_style_var_elsewhere = true:error
14-
csharp_prefer_braces = true
14+
csharp_prefer_braces = true:warning
15+
16+
17+
18+
[*.js]
19+
20+
# ASP0000: Do not call 'IServiceCollection.BuildServiceProvider' in 'ConfigureServices'
21+
dotnet_diagnostic.ASP0000.severity = error

Fritz.Chatbot/Commands/HttpPageTitleCommand.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,20 @@
1212

1313
namespace Fritz.Chatbot.Commands
1414
{
15+
16+
17+
/// <summary>
18+
/// This is a command about showing the title of a page references by the <a href="https://github.com/csharpfritz">ChatBot</a>
19+
///
20+
/// </summary>
1521
class HttpPageTitleCommand : IExtendedCommand
1622
{
1723
private static readonly Regex UrlRegex = new Regex("(https?:\\/\\/)?(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)", RegexOptions.Compiled | RegexOptions.IgnoreCase);
1824
private static readonly Regex TitleRegex = new Regex("<title>\\s*(.+?)\\s*<\\/title>", RegexOptions.IgnoreCase | RegexOptions.Compiled);
1925
private const string LINK_MESSAGE_TEMPLATE = "{{username}}'s linked page title: {{title}}";
2026

27+
private static HttpPageTitleCommand cmd;
28+
2129
public IChatService ChatService { get; private set; }
2230

2331
public string Name => "PageTitle";
@@ -34,6 +42,7 @@ class HttpPageTitleCommand : IExtendedCommand
3442

3543
private async Task Execute(string userName, string fullCommandText)
3644
{
45+
3746
var urls = GetUrls(fullCommandText);
3847
if (urls == null || !urls.Any())
3948
{

Fritz.StreamTools/Controllers/AttentionController.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,13 @@ public IActionResult Index()
1313
return View();
1414
}
1515

16+
public IActionResult DoTheThing()
17+
{
18+
19+
return View();
20+
21+
}
22+
1623
public IActionResult Points() {
1724
return View();
1825
}

Fritz.StreamTools/appsettings.json

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,11 +77,26 @@
7777
"cooldown": 120,
7878
"CooldownMessage": "No AND THEN!"
7979
},
80+
"anticipation": {
81+
"response": "We're waiting in.... Antici.... pation",
82+
"file": "anticipation.mp3",
83+
"cooldown": 60
84+
},
85+
"figuredout": {
86+
"response": "You figured this out ALL ON YOUR OWN?",
87+
"file": "FiguredThisOutAlready.mp3",
88+
"cooldown": 60
89+
},
8090
"javascript": {
8191
"response": "Horses LOVE JavaScript!",
8292
"file": "javascript.mp3",
8393
"cooldown": 30
8494
},
95+
"makeitso": {
96+
"response": "As Picard says: Make it so!",
97+
"file": "MakeItSo.mp3",
98+
"cooldown": 60
99+
},
85100
"rimshot": {
86101
"response": "Ba Dum Tish!",
87102
"file": "rimshot.mp3",
@@ -127,10 +142,6 @@
127142
"command": "discord",
128143
"response": "Join us on the Fritz and Friends Discord server at: https://discord.gg/RnJhrJq"
129144
},
130-
{
131-
"command": "gfuel",
132-
"response": "Jeff drinks GFUEL from Gamma Labs as a coffee replacement. 0g sugar, 150mg caffeine, 25 calories and you can learn more at https://gfuel.com"
133-
},
134145
{
135146
"command": "github",
136147
"response": "Checkout Jeff's GitHub at: https://github.com/csharpfritz and the FritzAndFriends GitHub organization at: https://github.com/FritzAndFriends"

0 commit comments

Comments
 (0)