support multiple rooms between telegram and xmpp#68
Conversation
|
Wow, really interesting stuff. Are you done yet? Should I review? |
|
yeah, its done... :) i have been testing it for the last few days... please feel free to comment on how the config should look like... this version will break the current config... |
| "type": "supergroup" | ||
| }, | ||
| "messageTemplate": "<b>{name}</b>\n{message}" | ||
| "messageTemplate": "***{name}***@[{room}](https://conversations.im/j/{room}@{network}):\n\r{message}" |
There was a problem hiding this comment.
change this to html!
|
@ForNeVeR i cannot find any place where i can assigne it back to u... |
|
Sorry? I've assigned it to myself and I'll review/merge when I'll be able to. |
|
Wonderful code editing, thanks! I had thoughts about the configuration scheme for connecting multiple chats here #3 (maybe outdated) so I think that the config should look something like this: {
// bots configs
bots: { slack_1, xmpp_bot1, xmpp_bot2, tg_bot1, tg_bot2},
rooms: {
// room configs
slack_hardcode: {},
xmpp_python: {},
xmpp_coders: {},
tg_coders: {},
tg_js: {},
xmpp_js: {},
},
links: [
// customizing the links between bots and rooms
['xmpp_js', 'tg_js', slack_1], // linked chats
['xmpp_python', 'xmpp_coders', 'tg_coders'], // another linked chats
/* or maybe:
[
'xmpp_bot1@xmpp_python',
'xmpp_bot2@xmpp_coders',
'tg_bot2@tg_coders'
],
*/
],
}any ideas on this ? |
|
hmm I'd rather go for something more simple... like: and on the code we could detect if it is an array... then we do what we need to do... but that complicates a lot the bridging.. and may create funky bugs... i'd rather duplicate the configurations something like: the bigger problem... is that this new way of config will make previous configs unusable... that worries me more... |
No description provided.