This repository has been archived on 2021-04-24. You can view files and clone it, but cannot push or open issues or pull requests.
Mikubot/launch.sh
2015-01-01 16:06:24 +01:00

18 lines
356 B
Bash
Executable File

#!/bin/sh
cd "$(dirname "$0")"
if [ ! -f ./tg/telegram.h ]; then
echo "Download tg first:"
echo "git submodule update --init --recursive"
exit
fi
if [ ! -f ./tg/bin/telegram-cli ]; then
echo "Compile telegram first:"
echo "cd tg && ./configure && make"
exit
fi
./tg/bin/telegram-cli -k tg/tg-server.pub -s ./bot/bot.lua -W -l 1