Compare commits
4 Commits
315a249ef6
...
9488ade7fb
Author | SHA1 | Date |
---|---|---|
khuxkm | 9488ade7fb | |
Ben Harris | ee85dfe5ab | |
Ben Harris | 5c708b436b | |
Ben Harris | 68253447b7 |
|
@ -89,7 +89,7 @@ obnoxious_logo = """
|
||||||
|
|
||||||
welcome = """>>> Welcome to Bulletin Butter & Jelly! ------------------@
|
welcome = """>>> Welcome to Bulletin Butter & Jelly! ------------------@
|
||||||
| BBJ is a persistent, chronologically ordered text |
|
| BBJ is a persistent, chronologically ordered text |
|
||||||
| discussion board for tilde.town. You may log in, |
|
| discussion board for tildes. You may log in, |
|
||||||
| register as a new user, or participate anonymously. |
|
| register as a new user, or participate anonymously. |
|
||||||
|---------------------------------------------------------|
|
|---------------------------------------------------------|
|
||||||
| \033[1;31mTo go anon, just press enter. Otherwise, give me a name\033[0m |
|
| \033[1;31mTo go anon, just press enter. Otherwise, give me a name\033[0m |
|
||||||
|
@ -1205,7 +1205,7 @@ class App(object):
|
||||||
urwid.ListBox(
|
urwid.ListBox(
|
||||||
urwid.SimpleFocusListWalker([
|
urwid.SimpleFocusListWalker([
|
||||||
urwid_rainbows(
|
urwid_rainbows(
|
||||||
"This is BBJ, a client/server textboard made for tilde.town!",
|
"This is BBJ, a client/server textboard made for tildes!",
|
||||||
True),
|
True),
|
||||||
urwid.Text(("dim", "...by ~desvox")),
|
urwid.Text(("dim", "...by ~desvox")),
|
||||||
urwid.Divider(self.theme["divider"]),
|
urwid.Divider(self.theme["divider"]),
|
||||||
|
|
|
@ -2,6 +2,6 @@
|
||||||
"port": 7099,
|
"port": 7099,
|
||||||
"host": "127.0.0.1",
|
"host": "127.0.0.1",
|
||||||
"instance_name": "BBJ",
|
"instance_name": "BBJ",
|
||||||
"allow_anon": True,
|
"allow_anon": true,
|
||||||
"debug": False
|
"debug": false
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
theme: jekyll-theme-midnight
|
17
setup.sh
17
setup.sh
|
@ -15,20 +15,29 @@ It takes the following flags:
|
||||||
|
|
||||||
You can optionally pass a different python interpreter to use (such as
|
You can optionally pass a different python interpreter to use (such as
|
||||||
a virtual environment), with no arguments this will use the system python3
|
a virtual environment), with no arguments this will use the system python3
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
exit;;
|
exit;;
|
||||||
|
|
||||||
--dbset )
|
--dbset )
|
||||||
sqlite3 data.sqlite < schema.sql
|
sqlite3 data.sqlite < schema.sql
|
||||||
echo cleared
|
echo cleared
|
||||||
chmod 600 data.sqlite
|
chmod 600 data.sqlite
|
||||||
exit;;
|
exit;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
PYTHON=`which python3`
|
|
||||||
[[ -e logs ]] || mkdir logs; mkdir logs/exceptions
|
[[ -e logs ]] || mkdir logs; mkdir logs/exceptions
|
||||||
|
|
||||||
|
PYTHON=`which python3`
|
||||||
[[ -z $1 ]] || PYTHON=$1
|
[[ -z $1 ]] || PYTHON=$1
|
||||||
echo Using $PYTHON...
|
echo Using $PYTHON...
|
||||||
$PYTHON -m pip install ${DEPS[*]}
|
$PYTHON -m pip install ${DEPS[*]}
|
||||||
|
|
||||||
echo "Enter [i] to initialize a new database"
|
echo "Enter [i] to initialize a new database"
|
||||||
read CLEAR
|
read CLEAR
|
||||||
[[ $CLEAR == "i" ]] && sqlite3 data.sqlite < schema.sql; chmod 600 data.sqlite
|
|
||||||
|
if [[ $CLEAR == "i" ]]; then
|
||||||
|
sqlite3 data.sqlite < schema.sql
|
||||||
|
chmod 600 data.sqlite
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue