Exemple #1
0
        private Task Client_MessageCreated(MessageCreateEventArgs e)
        {
            UpdateListener.CheckMessage(e);
            if (e.Author.IsBot)
            {
                return(Done);                              // explicitly ignore bot messages
            }
            var isKarmaMessage = ExperienceManager.IsExpMessage(e.Message);

            var gaveKarma = false;

            if (isKarmaMessage)
            {
                gaveKarma = ExperienceManager.UserToUserGiveExpAndNotify(e.Channel, e.Author, e.MentionedUsers);
            }

            return(Done);
        }