Tweaked the look of the launcher
This commit is contained in:
parent
997efc6a24
commit
32c9e15b91
29
cloudbot
29
cloudbot
|
@ -1,15 +1,11 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo
|
echo " ________ ______ __ "
|
||||||
echo "Welcome to: "
|
echo " / ____/ /___ __ ______/ / __ )____ / /_"
|
||||||
echo " ______ __ ______ __ __ _______ .______ ______ .___________."
|
echo " / / / / __ \/ / / / __ / __ / __ \/ __/"
|
||||||
echo " / || | / __ \ | | | | | \ | _ \ / __ \ | |"
|
echo "/ /___/ / /_/ / /_/ / /_/ / /_/ / /_/ / /_ "
|
||||||
echo "| ,----'| | | | | | | | | | | .--. || |_) | | | | | \`---| |----\`"
|
echo "\____/_/\____/\__,_/\__,_/_____/\____/\__/ "
|
||||||
echo "| | | | | | | | | | | | | | | || _ < | | | | | | "
|
echo " http://git.io/cloudbot lukeroge "
|
||||||
echo "| \`----.| \`----.| \`--' | | \`--' | | '--' || |_) | | \`--' | | | "
|
echo ""
|
||||||
echo " \______||_______| \______/ \______/ |_______/ |______/ \______/ |__| "
|
|
||||||
echo " http://git.io/cloudbot by lukeroge "
|
|
||||||
echo
|
|
||||||
|
|
||||||
locatefiles() {
|
locatefiles() {
|
||||||
botfile="/bot.py"
|
botfile="/bot.py"
|
||||||
botfile=$(pwd)$botfile
|
botfile=$(pwd)$botfile
|
||||||
|
@ -81,13 +77,13 @@ processargs() {
|
||||||
if running; then
|
if running; then
|
||||||
echo "Cannot start! Bot is already running!"
|
echo "Cannot start! Bot is already running!"
|
||||||
else
|
else
|
||||||
echo "Starting... ($backend)"
|
echo "Starting CloudBot... ($backend)"
|
||||||
start
|
start
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
stop)
|
stop)
|
||||||
if running; then
|
if running; then
|
||||||
echo "Stopping... ($backend)"
|
echo "Stopping CloudBot... ($backend)"
|
||||||
stop
|
stop
|
||||||
else
|
else
|
||||||
echo "Cannot stop! Bot is not already running!"
|
echo "Cannot stop! Bot is not already running!"
|
||||||
|
@ -95,7 +91,7 @@ processargs() {
|
||||||
;;
|
;;
|
||||||
restart)
|
restart)
|
||||||
if running; then
|
if running; then
|
||||||
echo "Restarting... ($backend)"
|
echo "Restarting CloudBot... ($backend)"
|
||||||
stop
|
stop
|
||||||
start
|
start
|
||||||
else
|
else
|
||||||
|
@ -109,7 +105,8 @@ processargs() {
|
||||||
status)
|
status)
|
||||||
status
|
status
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
echo "Please enter a command:"
|
||||||
usage="./cloudbot {start|stop|restart|clear|status}"
|
usage="./cloudbot {start|stop|restart|clear|status}"
|
||||||
echo $usage
|
echo $usage
|
||||||
;;
|
;;
|
||||||
|
@ -123,4 +120,4 @@ main() {
|
||||||
processargs $1
|
processargs $1
|
||||||
}
|
}
|
||||||
|
|
||||||
main $*
|
main $*
|
||||||
|
|
Reference in a new issue