forked from ticketfrei/ticketfrei
improve docs & error messages
This commit is contained in:
parent
289c6ecb78
commit
d745ad6520
|
@ -11,16 +11,16 @@ There is one security hole: people could start mentioning the bot with useless i
|
||||||
|
|
||||||
# Install
|
# Install
|
||||||
|
|
||||||
Install python3 with your favourite package manager.
|
Install python and virtualenv with your favourite package manager.
|
||||||
Create and activate virtualenv
|
Create and activate virtualenv
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
$ virtualenv -p python3 .
|
$ virtualenv -p python2 .
|
||||||
$ . bin/activate
|
$ . bin/activate
|
||||||
```
|
```
|
||||||
Install dependencies
|
Install dependencies
|
||||||
```shell
|
```shell
|
||||||
$ pip3 install Mastodon.py pytoml
|
$ pip install python-twitter pytoml requests Mastodon.py
|
||||||
$ pip install python-twitter pytoml requests
|
|
||||||
```
|
```
|
||||||
Configure
|
Configure
|
||||||
```shell
|
```shell
|
||||||
|
|
|
@ -195,5 +195,6 @@ if __name__ == "__main__":
|
||||||
while True:
|
while True:
|
||||||
bot.flow()
|
bot.flow()
|
||||||
sleep(6)
|
sleep(6)
|
||||||
except:
|
except Exception as e:
|
||||||
|
print(e)
|
||||||
bot.shutdown()
|
bot.shutdown()
|
||||||
|
|
|
@ -22,5 +22,6 @@ if __name__ == '__main__':
|
||||||
statuses = mbot.retoot(statuses)
|
statuses = mbot.retoot(statuses)
|
||||||
statuses = tbot.flow(statuses)
|
statuses = tbot.flow(statuses)
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
except:
|
except Exception as e:
|
||||||
|
print e
|
||||||
tbot.shutdown()
|
tbot.shutdown()
|
||||||
|
|
Loading…
Reference in a new issue