etc-server/bitlbee/
: BitlBee IRC gatewayΒΆ
BitlBee (https://www.bitlbee.org/) is an IRC gateway to other chat networks.
Once installed, it seems good to restrict BitlBee to listen only on the loopback interface.
Modify /etc/bitlbee/bitlbee.conf
:
[settings]
## RunMode:
##
## Inetd -- Run from inetd (default)
## Daemon -- Run as a stand-alone daemon, serving all users from one process.
## This saves memory if there are more users, the downside is that when one
## user hits a crash-bug, all other users will also lose their connection.
## ForkDaemon -- Run as a stand-alone daemon, but keep all clients in separate
## child processes. This should be pretty safe and reliable to use instead
## of inetd mode.
##
# RunMode = Inetd
RunMode = ForkDaemon
## DaemonPort/DaemonInterface:
##
## For daemon mode, you can specify on what interface and port the daemon
## should be listening for connections.
##
## DEBIAN NOTE: The init script passes the -p flag to use the port number
## set using debconf, this overrides the DaemonPort setting here.
##
# DaemonInterface = 0.0.0.0
# DaemonPort = 6667
DaemonInterface = 127.0.0.1
Then, start BitlBee daemon and connect to the IRC gateway, for example with WeeChat:
# Configure the server and connect to it
/server add bitlbee localhost/6667 -autoconnect
/connect bitlbee
# Register the account in BitlBee control channel
register <password>
# In WeeChat, save the password
/secure set bitlbee_password <password>
/set irc.server.bitlbee.command "/msg &bitlbee identify ${sec.data.bitlbee_password}"
Then, in BitlBee control channel (&bitlbee
), add a Twitter account for example (https://wiki.bitlbee.org/HowtoTwitter):
account add twitter <yourusername>
# Force using commands in order to post a new tweet
account twitter set commands strict
# Disable streams (cf. https://wiki.bitlbee.org/HowtoTwitter/StreamDeprecation)
account twitter set stream off
# Connect to Twitter
account twitter on
# Follow an other Twitter account
add twitter <twitter_username_to_follow>