added readme

This commit is contained in:
tastytea 2018-06-15 02:44:10 +02:00
parent ac9dfa999f
commit e7868fd7a3
Signed by: tastytea
GPG Key ID: 59346E0EA35C67E5
2 changed files with 14 additions and 0 deletions

13
README.md Normal file
View File

@ -0,0 +1,13 @@
**sudobot** is a Mastodon bot that toots offensive insults from sudo.
# Installation and usage
```SH
wget https://schlomp.space/tastytea/sudobot/raw/branch/master/sudobot
chmod +x sudobot
echo "token=<yout token here>" > ~/.config/sudobot.cfg
./sudobot
```
sudobot will download the offensive insults from sudo.ws on the first run.
It will toot an insult every time you start it, with the CW "insult".

View File

@ -32,6 +32,7 @@ main()
token=$(echo $token | sed 's/^.*=//')
else
echo "ERROR: no config file found in ${cfg}" >&2
echo "Create it with the contents: token=<your token>" >&2
exit 1
fi