-
Notifications
You must be signed in to change notification settings - Fork 55
Bot installation
Merbot is telegram-cli based bot. Before installing merbot, we need to satisfied telegram-cli dependencies.
The following is how to install the telegram-cli dependencies as stated on vysheng/tg/README.md: Linux and BSDs
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson-dev libpython-dev make unzip git redis-server g++
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev make unzip git redis-server g++ libjansson-dev libpython-dev expat libexpat1-dev
sudo emerge -av sys-libs/readline dev-libs/libconfig dev-libs/openssl dev-lang/lua dev-libs/libevent dev-libs/jansson
sudo yum install lua-devel openssl-devel libconfig-devel readline-devel libevent-devel libjansson-devel git redis gcc make unzip gcc-c++ expat-devel
pkg install libconfig libexecinfo lua52
pkg_add libconfig libexecinfo lua
Check out vysheng/tg/README.md: Mac OS X
If you use a different package manager than the ones above, the following is a list of required packages:
libreadline-dev (readline)
libconfig-dev (libconfig)
libssl-dev (openssl)
lua5.2
liblua5.2-dev (liblua)
libevent-dev
libjansson-dev (libjansson)
libpython-dev
make
unzip
git
redis-server (redis)
g++
cd $HOME
git clone https://github.com/rizaumami/merbot.git
cd merbot
./merbot install
After tg
compilation has finished, run merbot
, it will ask you for phone number & confirmation code;
./merbot
Type quit
or safe_quit
inside telegram-cli
instance to quit, then rerun merbot
, it will then will ask you for bot API key:
./merbot
To install everything on this page (except new user) in one command on debian-based distros, use: (useful for VPS deployment)
sudo apt-get update; sudo apt-get upgrade -y --force-yes; sudo apt-get dist-upgrade -y --force-yes; sudo apt-get install libreadline-dev libconfig-dev libssl-dev lua5.2 liblua5.2-dev libevent-dev libjansson* libpython-dev make unzip git redis-server g++ -y --force-yes && git clone https://github.com/rizaumami/merbot.git && cd merbot && ./merbot install && ./merbot
After running that command, leave the VPS for a few minutes (depends on the speed of the VPS) to download and compile everything and when you come back you should just have to enter your phone number and confirmation code.
Type quit
or safe_quit
inside telegram-cli
instance to quit, then rerun ./merbot
, it will then will ask you for bot API key.
Starting from v0.3
, merbot also provide a pre-compiled package so you don't have to compile it manually. Just download the pre-compiled package, extract then start to using it.
- install dependencies as usual
- download the latest release, i.e
v0.4
;
wget https://github.com/rizaumami/merbot/releases/download/v0.4/merbot_0.4_amd64.tar.gz
- extract the pre-compiled package using following command;
tar xf merbot_0.4_amd64.tar.gz
- enter extracted merbot folder;
cd merbot
- start merbot, it then will ask you for phone number & confirmation code;
./merbot
- type
quit
orsafe_quit
insidetelegram-cli
instance to quit, then rerunmerbot
, it then will ask you for bot API key:
./merbot
Home
Installation:
Rank system
Frequently Asked Questions
Bugs
Plugins:
- 9gag.lua
- administration.lua
- apod.lua
- bing.lua
- calculator.lua
- cats.lua
- currency.lua
- dilbert.lua
- dogify.lua
- forecast.lua
- gmaps.lua
- gsmarena.lua
- hackernews.lua
- help.lua
- id.lua
- imdb.lua
- isup.lua
- kaskus.lua
- logger.lua
- pattern.lua
- plugins.lua
- quran.lua
- reddit.lua
- rss.lua
- salat.lua
- stats.lua
- sudo.lua
- time.lua
- translate.lua
- urbandictionary.lua
- webshot.lua
- whois.lua
- xkcd.lua
- yify.lua