A fairly simple bot that relays messages from HaSi's IRC channel (mapped to a special MUC on the XMPP server) to the HaSi MUC and Telegram group and vice versa.
The script requires three libraries:
- sleekxmpp (for XMPP stuff, obviously)
- python-telegram-bot (guess what this does)
- pyyaml (for parsing the config file)
Please note that you might want to disable the telegram bots 'privacy mode'! Otherwise it only sees direct replys in telegram groups!
The Bot relies on a straight-forward YAML configuration file:
jid: the bot's JID on the server
pw: the bot's password
irc: the JID of the MUC that maps to the IRC channel
xmpp: the JID of the "native" XMPP MUC
tg_chat: the Telegram group chat's ID
tg_token: the Telegram API token
ignore: a list of IRC nicks to ignore (useful for bots etc.)
You can find an example configuration in the repository.