Beispiel #1
0
        private MyEmote EmoteSearch(string call)
        {
            MyEmote calledEmote = null;

            foreach (var emote in Memes.emotes)
            {
                if (call == emote.Key || call == emote.Value.emoteID || Context.Message.Content == emote.Value.emoteID)
                {
                    calledEmote = emote.Value;
                    return(calledEmote);
                }
            }
            return(calledEmote);
        }
Beispiel #2
0
        public async Task emoteAsync(string call = "null")
        {
            MyEmote calledEmote = EmoteSearch(call);

            if (calledEmote != null)
            {
                var embed = new EmbedBuilder();
                embed.WithImageUrl(calledEmote.url)
                .WithAuthor(Context.Message.Author);
                await Context.Message.DeleteAsync();
                await ReplyAsync("", false, embed);
            }
            else
            {
                await ReplyAsync("nie ma JESZCZE takiej emoty - proś miłosza żeby ruszył dupe");
            }
        }