blob: 4c2bd9bf9061f40d0580a54db7788fe53b8b837d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
x_start_butterscotch () {
node index.js
if [ $? -eq 158 ]; then
echo "Bot was asked to restart"
x_start_butterscotch
else
echo "Bot wasn't asked to restart, not restarting"
fi
}
x_start_butterscotch
|