1
0
mirror of https://github.com/chylex/Query.git synced 2025-05-29 19:34:02 +02:00
Query/AppMeme/App.cs
2024-08-01 21:35:14 +02:00

26 lines
668 B
C#

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