README
Whenever you need to clap back, use this skill to convert normal text into 👏 CLAP 👏 BACK 👏 POWERMODE!
Usage
Take text and clap it in all caps.
Code
var text = Bot
.Arguments
.Select(x => x.Value)
.Aggregate(«», (agg, next) => string.Join(» «, new [] { agg, next }))
;
var words = text
.Split(» «, StringSplitOptions.RemoveEmptyEntries | StringSplitOptions.TrimEntries)
.Select(w => w.ToUpperInvariant())
.ToArray();
if (words.Length == 1) {
await Bot.ReplyAsync($»:clap: {words[0]}! :clap:»);
} else {
await Bot.ReplyAsync($»{string.Join(» :clap: «, words)}! :clap:»);
}