simple Whatsapp bridge to and from IRC based on irclib and yowsup
- Send messages to one IRC channel from one groups whatsapp
- Send messages to one group whatsapp from one IRC channel
- Let users join the group whatsapp by telling the bot to
add
them (leave / join when you like) - Send images and locations to whatsapp - see a clickable URL on IRC
- Get notifications about joining / leaving whatsapp users on IRC
apt-get install python-irclib python-dateutil
git clone https://github.com/cybertim/iagobot.git
cd iagobot
git submodule init
git submodule update
- copy
config.py.example
toconfig.py
- edit the
config.py
with your fav editor - set all settings according to your own wishes
- run
./bot.py
while testing - or run
./boy.py > log.txt &
to launch it in the background
- First register your iagobot with whatsapp (see registration with whatsapp) and set the correct settings in the
config.py
- Keep the
wa_group
empty for the first run - Start the bot by executing
./bot.py
and keep the log open - Start a normal whatsapp chat with the iagobot
- Say
help
and iagobot will tell you all the options - Let the bot create a group by saying
create
, after the creation you can tell the bot toadd
you - Check your log for !!!!!!!! JID: 123123123-123123123@g.us !!!!!!!!
- And copy this JID (all numbers including the
@g.us
) in thewa_group
setting of theconfig.py
so the bot knows the exact group when its restarted
Now everybody (new users) who likes to enter the group whatsapp can add the iagobots phone number to its contact list and ask him to add
Remember to add every new person to the config.py
so the iagobot knows what name to show on irc when a person chats on whatsapp (else you will see unknown
on IRC).
You can register an extra phone number (buy an extra simcard) to use with this bot. To register to whatsapp and get the correct password:
- go to http://whitesoft.dyndns.org:2222/whatsapp_sms and request an sms
- clone yowsup (or use yowsup delivered with iagobot)
- use:
./yowsup-cli --register <code from sms>
- copy / paste the password from the output to the
config.py