A bot built on top of pidgin/finch (Maybe other libpurple clients?) using the DBus interface. It can:
- Send messages to and from chats across different (libpurple supported) chat protocols.
- Perform commands.
It can run on any linux-based system that supports libpurple. The bot assumes you're using konsole. If you aren't, switch the terminalName variable to match the terminal you use.
Dependencies:
- Python 2.7/3.4+ (May run on older versions, not tested)
- PyGObject (pip install pygobject)
- PyDBus (pip install pydbus)
- humanize (pip install humanize)
- parsedatetime (pip install parsedatetime)
- youtube-dl (pip install youtube-dl)
- Finch (sudo apt install finch)
On debian, the command to install all of the dependencies is:
sudo apt install finch && sudo pip install pygobject pydbus humanize parsedatetime youtube-dl --upgrade
How to use:
- Install all of the dependencies if they are not installed.
- Open finch.
- If you have not set up a bot account, do so now.
- Log into your bot account on finch.
- Run "runbot.sh"
- Profit!
The command delimiter is "!" by default, so commands can be run like "!help". Inputting a command that doesn't exist, such as "!commandThatDoesntExist" will print out a list of all valid commands.
More information on individual commands is available through "!help (commandname)" or in the helpText dictionary in the code.