Stop bot from running as root.

This commit is contained in:
Storm Dragon 2017-04-05 19:00:57 -04:00
parent c0ab593614
commit 28e505efae

4
bot.sh
View File

@ -1,5 +1,9 @@
#!/bin/bash
if [ "$(whoami)" = "root" ]; then
echo "This bot should not be ran as root."
exit 1
fi
[ -f functions.sh ] && source functions.sh
[ -f bot.cfg ] && source bot.cfg
input=".botinput"