1
0
mirror of https://github.com/chylex/Query.git synced 2025-05-01 17:34:12 +02:00
Query/AppMeme/App.cs
2024-08-05 20:42:15 +02:00

26 lines
612 B
C#

using System.Collections.Generic;
using Base;
namespace AppMeme;
public sealed class App : IApp {
private static readonly Dictionary<string, string> Map = new () {
{ "shrug", @"¯\_(ツ)_/¯" },
{ "lenny", @"( ͡° ͜ʖ ͡°)" },
{ "flip", @"(╯°□°)╯︵ ┻━┻" },
{ "tableflip", @"(╯°□°)╯︵ ┻━┻" }
};
public string[] RecognizedNames => [
"meme"
];
public MatchConfidence GetConfidence(Command cmd) {
return Map.ContainsKey(cmd.Text) ? MatchConfidence.Full : MatchConfidence.None;
}
public string ProcessCommand(Command cmd) {
return Map[cmd.Text];
}
}