Ekspoint 2,122 Posted July 8, 2017 Как оправить сообщение в общий чат? Quote Share this post Link to post Short link Share on other sites
KoHcoJlb 1 #396976 Posted July 8, 2017 Я делаю так class CommonChannelCriteria(object): def filter(self, channel): return channel.getName() == messenger.m_constants.LAZY_CHANNEL.COMMON ctrl = messenger.MessengerEntry.g_instance.gui.channelsCtrl.getControllerByCriteria(CommonChannelCriteria()) ctrl.sendMessage("Hello world") Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #397020 Posted July 9, 2017 А можно и так: BigWorld.player().broadcast(ChatID, message) Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #397062 Posted July 9, 2017 А можно и так: BigWorld.player().broadcast(ChatID, message) а какой ид у общего чата? Quote Share this post Link to post Short link Share on other sites
ShuraBB 1,151 #397063 Posted July 9, 2017 (edited) from ChatManager import chatManager from chat_shared import CHAT_ACTIONS def onAccountShowGUI(ctx): chatManager.subscribeChatAction(SubscribeChat, CHAT_ACTIONS.requestChannels) def SubscribeChat(chatAction): for Data in chatAction['data']: if Data.get('channelName', '') == '#chat:channels/common': ChatID = Data.get('id', 0) Edited July 9, 2017 by ShuraBB 1 Quote Share this post Link to post Short link Share on other sites
Stassss 0 #404676 Posted September 20, 2017 Как оправить сообщение в общий чат? ты говорил про модик который отправляет сообщения в общий чат сколько будет стоить? Quote Share this post Link to post Short link Share on other sites
Ekspoint 2,122 #404684 Posted September 20, 2017 ты говорил про модик который отправляет сообщения в общий чат сколько будет стоить? где говорил? Quote Share this post Link to post Short link Share on other sites