add runner
This commit is contained in:
parent
5d7ef1bf56
commit
83d8b75b34
2 changed files with 30 additions and 0 deletions
26
README.md
Normal file
26
README.md
Normal file
|
@ -0,0 +1,26 @@
|
|||
This is a project to automatically send messages in a Telegram channel as a Mastodon toot.
|
||||
|
||||
Install
|
||||
=======
|
||||
To make it work, do the following:
|
||||
|
||||
$ git clone https://gitlab.com/danialbehzadi/tgchannel2toot.git
|
||||
$ cd tgchannel2toot
|
||||
$ virtualenv -p python3 --no-site-packages --distribute .env
|
||||
$ source .env/bin/activate
|
||||
(.env)$ pip3 install -r requirements.txt
|
||||
|
||||
Config
|
||||
======
|
||||
Make a copy of each config file:
|
||||
|
||||
(.env)$ cp config.ini.temp config.ini
|
||||
(.env)$ cp config.py.temp config.py
|
||||
|
||||
Fill out config files.
|
||||
|
||||
Run
|
||||
===
|
||||
To run the bot do as following:
|
||||
|
||||
$ ./run.sh
|
4
run.sh
Executable file
4
run.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
export SHELL=/bin/bash
|
||||
source .env/bin/activate
|
||||
./tgchannel2toot.py
|
Loading…
Add table
Add a link
Reference in a new issue