Ejemplo n.º 1
0
        public override Task UserTextMessage(Murmur.User user, Murmur.TextMessage message)
        {
            var apiUser   = new UserWrapper(SteamListener, WServer, user);
            var destChans = message.channels.Select(x => new ChannelShim(WServer, x)).ToArray();

            return(Task.WhenAll(Plugins.Select(x => x.OnChatMessage(apiUser, destChans, message.text))));
        }
Ejemplo n.º 2
0
        public override Task UserDisconnected(Murmur.User user)
        {
            var apiUser = new UserWrapper(SteamListener, WServer, user);

            return(Task.WhenAll(Plugins.Select(x => x.OnUserDisconnected(apiUser))));
        }