상속: System.EventArgs
예제 #1
0
        private void ProtocolHandler(object sender, MumblePacketEventArgs args)
        {
            var proto = args.Message as IProtocolHandler;

            proto?.HandleMessage(this);
        }
예제 #2
0
        void MumbleText(object sender, MumblePacketEventArgs e)
        {
            foreach (var channel in BotMethods.JoinedChannels)
            {
                var message = (TextMessage)e.Message;
                var user = client.FindUser(message.actor);

                BotMethods.SendMessage(SendType.Message, channel, user.Name + ": " + message.message);
            }
        }
예제 #3
0
        private void PacketReceivedHandler(object sender, MumblePacketEventArgs args)
        {
            var proto = args.Message as IProtocolHandler;

            Console.WriteLine(proto.Inspect());
        }
예제 #4
0
        void MumbleConnected(object sender, MumblePacketEventArgs e)
        {
            var channelName = MumbleSettings.Default.MumbleChannel;

            if (channelName == null) { return; }

            var channel = client.FindChannel(channelName);
            client.SwitchChannel(channel);
        }
예제 #5
0
        private void ProtocolHandler(object sender, MumblePacketEventArgs args)
        {
            var proto = args.Message as IProtocolHandler;

            proto?.HandleMessage(this);
        }