improve docs & error messages

remotes/1705286528371406548/stable1
b3yond 2017-07-11 21:51:37 +02:00
parent 289c6ecb78
commit d745ad6520
3 changed files with 8 additions and 6 deletions

View File

@ -11,16 +11,16 @@ There is one security hole: people could start mentioning the bot with useless i
# Install
Install python3 with your favourite package manager.
Install python and virtualenv with your favourite package manager.
Create and activate virtualenv
```shell
$ virtualenv -p python3 .
$ virtualenv -p python2 .
$ . bin/activate
```
Install dependencies
```shell
$ pip3 install Mastodon.py pytoml
$ pip install python-twitter pytoml requests
$ pip install python-twitter pytoml requests Mastodon.py
```
Configure
```shell

View File

@ -195,5 +195,6 @@ if __name__ == "__main__":
while True:
bot.flow()
sleep(6)
except:
except Exception as e:
print(e)
bot.shutdown()

View File

@ -22,5 +22,6 @@ if __name__ == '__main__':
statuses = mbot.retoot(statuses)
statuses = tbot.flow(statuses)
time.sleep(1)
except:
except Exception as e:
print e
tbot.shutdown()