Skip to content
This repository has been archived by the owner on Mar 13, 2019. It is now read-only.

TheReverend403/Pyper

Repository files navigation

Pyper - A Python Telegram bot

Requirements

Python 3.4
pyTelegramBotAPI (requirements.txt)

Demo

http://telegram.me/Pyper\_Bot

Install

First, acquire a bot token from https://telegram.me/BotFather

git clone https://github.com/TheReverend403/Pyper
cd Pyper
virtualenv .venv -p python3
source .venv/bin/activate
pip install -r requirements.txt
cp config.ini.sample config.ini
nano config.ini # Add your bot token
python -m pyper.main

Upgrade

cd Pyper
git pull
source .venv/bin/activate
pip install -r requirements.txt
cat config.ini.sample # Check for any new values, add them to config.ini

systemd service

To run Pyper as a systemd user service:

cp pyper.service ~/.config/systemd/user
nano ~/.config/systemd/user/pyper.service # Edit as needed
systemctl --user daemon-reload
systemctl --user enable pyper
systemctl --user start pyper
sudo loginctl enable-linger $USER # To allow user services to run on startup and stay after logout.

To run Pyper as a systemd system service (not recommended):

sudo cp pyper.service /etc/systemd/system
sudo nano /etc/systemd/system/pyper.service # Edit as needed
sudo systemctl daemon-reload
sudo systemctl enable pyper
sudo systemctl start pyper

Contributing

Install flake8 and copy scripts/pre_commit to .git/hooks/pre-commit

About

Pyper - A Python Telegram bot

Resources

License

Stars

Watchers

Forks

Packages

No packages published