IGOS Nusantara dan Telegram Bot

Dari IGNwiki
Langsung ke: navigasi, cari

Persiapan:

  • Pasang IGOS Nusantara Server 2.0
  • Pasang bot di /home/igos/bot/

Pasang Paket

# 
yum install git gcc gcc-c++ make patch kernel-devel expat-devel 
yum install openssl-devel libconfig-devel ncurses-devel readline-devel libevent-devel jansson-devel python-virtualenv 
yum install lua-expat lua-bitop

Pasang Lua

#
wget http://www.lua.org/ftp/lua-5.3.1.tar.gz
tar zxf lua-5.3.1.tar.gz
cd lua-5.3.1
make linux
make install

Pasang LuaRocks

#
wget http://luarocks.org/releases/luarocks-2.2.2.tar.gz
tar zxvf luarocks-2.2.2.tar.gz
cd luarocks-2.2.2
./configure
make
make install   

Pasang Bot

Git

$
git clone https://github.com/yagop/telegram-bot.git --recursive

Pasang Modul untuk Bot

$
cd telegram-bot/
./launch install

Jalankan Bot

$
./launch