added readme
This commit is contained in:
parent
ac9dfa999f
commit
e7868fd7a3
|
@ -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".
|
1
sudobot
1
sudobot
|
@ -32,6 +32,7 @@ main()
|
||||||
token=$(echo $token | sed 's/^.*=//')
|
token=$(echo $token | sed 's/^.*=//')
|
||||||
else
|
else
|
||||||
echo "ERROR: no config file found in ${cfg}" >&2
|
echo "ERROR: no config file found in ${cfg}" >&2
|
||||||
|
echo "Create it with the contents: token=<your token>" >&2
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue