https://github.com/skorotkiewicz/telegram-kybot
A chat bot for Telegram, written in PHP.
https://github.com/skorotkiewicz/telegram-kybot
Last synced: 7 months ago
JSON representation
A chat bot for Telegram, written in PHP.
- Host: GitHub
- URL: https://github.com/skorotkiewicz/telegram-kybot
- Owner: skorotkiewicz
- License: gpl-2.0
- Created: 2014-03-07T19:45:56.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-28T11:43:12.000Z (over 11 years ago)
- Last Synced: 2024-06-13T06:09:31.511Z (about 1 year ago)
- Language: PHP
- Size: 188 KB
- Stars: 1
- Watchers: 3
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# telegram-kybot
## A chatbot for Telegram, written in PHP### Setting up tg to be used with telegram-kybot
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
makeMake 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.
### Installing kybot
mkdir /var/dev/telegram-kybot/
git clone https://github.com/kenniki/telegram-kybot.git /var/dev/telegram-kybot/
cd src
./start.shThat'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.
### Writing modules
Take a look at the example module in themodules
folder. It should be self-explanatory. If it isn't, don't write a module.### Disclaimer
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.