示例#1
0
        private async void ReactionAddedAsync(object sender, ReactionAddedEventArgs e)
        {
            if (!e.React.Emote.Equals(_hamagenEmote))
            {
                return;
            }

            var reactInfo   = new ReactInfo(_config, e.Message, e.Channel, e.React);
            var warnMessage =
                $"Mayor <@{_hamagenUserId}>, one of your town villagers, <@{reactInfo.ReactAuthorId}>, requests your help!" +
                Environment.NewLine + $"Villager's letter: {reactInfo.MessageLink}";

            await _baseWarnMessageModule.WarnMessage(e.Message, e.Channel, e.React, warnMessage);
        }
示例#2
0
        private async void ReactionAddedAsync(object sender, ReactionAddedEventArgs e)
        {
            if (!e.React.Emote.Equals(_rabbit2Emoji))
            {
                return;
            }

            var reactInfo   = new ReactInfo(_config, e.Message, e.Channel, e.React);
            var warnMessage =
                $"Master <@{_jaraSoukupUserId}>, your comrade <@{reactInfo.ReactAuthorId}> has found some *steamy* discussion. You should take a look." +
                Environment.NewLine + $"Discussion reference: {reactInfo.MessageLink}";

            await _baseWarnMessageModule.WarnMessage(e.Message, e.Channel, e.React, warnMessage);
        }