예제 #1
0
        private void Rcon_Chat(object sender, EventArgs ec)
        {
            RconChatEventArgs e = (RconChatEventArgs)ec;

            foreach (var c in Config.Channels)
            {
                string s = Util.FormatString(Config.OnChat, "{bot_prefix}", Config.BotPrefix, "{player_name}", e.Message.PlayerName, "{message}", e.Message.Message);
                client.GetGuild(c.Guild).GetTextChannel(c.Channel).SendMessageAsync(s);
            }
        }
예제 #2
0
        private void Rcon_Chat(object sender, EventArgs ec)
        {
            RconChatEventArgs e = (RconChatEventArgs)ec;

            client.GetGuild(12).GetTextChannel(12).SendMessageAsync(string.Format("{0}: {1}", e.Message.PlayerName, e.Message.Message));
        }