In order to efficiently parse the output of tg, there were some changes needed to the source code of tg (in essence, the removal of color tags in the output). I already have done this in my fork of the tg repository.
mkdir /etc/telegram/ git clone https://github.com/kenniki/tg.git /etc/telegram/ cd /etc/telegram ./configure make
Make sure you have the needed dependencies installed for the compilation to succeed. Refer to the tg README. The tg fork will not be kept up to date, so if you want a current version of it, please use the official repository and make the changes yourself.
kybot expects tg to reside in /etc/telegram
. If you change that, you will need to modify the kybot files accordingly.
After you installed tg, run it and complete the initial setup. Once done, you can install kybot.
Finally, install gentoo.
mkdir /var/dev/telegram-kybot/ git clone https://github.com/kenniki/telegram-kybot.git /var/dev/telegram-kybot/ cd src ./start.sh
That's basically it.
For it to work, you'll need to install GNU expect.
In Debian, this is simple: apt-get install expect
The path kybot resides in shouldn't matter, but it's possible I fuck up and hardcode some shit and then it will not work.
The above path is what I use.
If you want to run kybot in the background, you can use screen.
Take a look at the example module in the modules
folder. It should be self-explanatory. If it isn't, don't write a module.
I'm releasing this as GPL v2, don't be a dick etc etc. Otherwise, I'm not a good coder. I just like to tinker with shit. If you burn your house down with this code, you're a fucking retard and it's your own fault.