forked from tildetown/town
fixes, readme
parent
a464159a21
commit
05ac83019c
|
@ -7,16 +7,15 @@ The point of this command is to enable signing up for tilde.town via an ssh conn
|
||||||
- [x] interactive guts
|
- [x] interactive guts
|
||||||
- [x] logging
|
- [x] logging
|
||||||
- [x] write answers to disk
|
- [x] write answers to disk
|
||||||
- [ ] take out sidebar
|
- [x] take out sidebar
|
||||||
- [ ] add /help
|
- [x] add /help
|
||||||
- [ ] make copy clearer (that you say whatever and *then* type verb)
|
- [ ] make copy clearer (that you say whatever and *then* type verb)
|
||||||
- [ ] enter to send
|
- [x] enter to send
|
||||||
- [ ] shift+enter for new line (discord/slack style) if possible
|
|
||||||
- [ ] splash screen - put off
|
- [ ] splash screen - put off
|
||||||
- [ ] easter egg commands - put off
|
- [ ] easter egg commands - put off
|
||||||
- [ ] inactivity timer(?) - put off
|
- [ ] inactivity timer(?) - put off
|
||||||
- [ ] review tool
|
- [ ] review tool
|
||||||
- [ ] iterate over answers
|
- [x] iterate over answers
|
||||||
- [ ] accept
|
- [ ] accept
|
||||||
- [ ] notate
|
- [ ] notate
|
||||||
- [ ] reject
|
- [ ] reject
|
||||||
|
@ -32,6 +31,18 @@ The point of this command is to enable signing up for tilde.town via an ssh conn
|
||||||
|
|
||||||
## configuration
|
## configuration
|
||||||
|
|
||||||
|
On disk assumptions:
|
||||||
|
|
||||||
|
- `/town/var/signups` exists and is owned by user `join` and group `admin`
|
||||||
|
- `/town/var/signups/log` exists and is owned by user `join` and group `admin`
|
||||||
|
|
||||||
|
Assumes the following has been run:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
sqlite3 /town/var/signups/signups.db < /town/src/town/sql/create_signups_table.sql
|
||||||
|
sudo chown join:admin /town/var/signups/signups.db
|
||||||
|
```
|
||||||
|
|
||||||
It assumes, in `sshd_config`:
|
It assumes, in `sshd_config`:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
@ -220,7 +220,7 @@ func _main(l *log.Logger, db *signup.DB) error {
|
||||||
newCharacter("the shrike", "a little grey bird. it has a pretty song."),
|
newCharacter("the shrike", "a little grey bird. it has a pretty song."),
|
||||||
func(s *scene) { su.How = string(s.Input.Bytes()) }),
|
func(s *scene) { su.How = string(s.Input.Bytes()) }),
|
||||||
newScene("what", heredoc.Doc(`
|
newScene("what", heredoc.Doc(`
|
||||||
You sink backwards into the forest. You find yourself floating in darkness.
|
You sink down into soft mossy floor of the forest. You find yourself floating in darkness.
|
||||||
|
|
||||||
At the far reaches of your vision you can make out a faint neon grid. Around you
|
At the far reaches of your vision you can make out a faint neon grid. Around you
|
||||||
float pieces of consumer electronic appliances from 1980s Earth. A VCR approaches
|
float pieces of consumer electronic appliances from 1980s Earth. A VCR approaches
|
||||||
|
@ -230,8 +230,7 @@ func _main(l *log.Logger, db *signup.DB) error {
|
||||||
welcome! thank you for coming this far. just two questions left. what about
|
welcome! thank you for coming this far. just two questions left. what about
|
||||||
tilde town interests you? what kind of stuff might you want to get up to here?
|
tilde town interests you? what kind of stuff might you want to get up to here?
|
||||||
|
|
||||||
as usual, just say your answer. when you're satisfied, please [-:-:b]/spin[-:-:-]
|
as usual, just say your answer. when you're satisfied, please [-:-:b]/nod[-:-:-]
|
||||||
around in this void.
|
|
||||||
`),
|
`),
|
||||||
"hmm did you say something?",
|
"hmm did you say something?",
|
||||||
newCharacter("the vcr", "a black and grey VCR from 1991"),
|
newCharacter("the vcr", "a black and grey VCR from 1991"),
|
||||||
|
@ -252,8 +251,7 @@ func _main(l *log.Logger, db *signup.DB) error {
|
||||||
|
|
||||||
say some links and words out loud, you know the drill.
|
say some links and words out loud, you know the drill.
|
||||||
|
|
||||||
when you're happy you can submit this whole experience by leaving the
|
when you're happy you can submit this whole experience with a [-:-:b]/nod[-:-:-]
|
||||||
store. just [-:-:b]/open[-:-:-] the door.
|
|
||||||
`),
|
`),
|
||||||
"just the one last thing please",
|
"just the one last thing please",
|
||||||
newCharacter("the mop", "a greying mop with a wooden handle."),
|
newCharacter("the mop", "a greying mop with a wooden handle."),
|
||||||
|
|
|
@ -63,7 +63,7 @@ func NewDB() (*DB, error) {
|
||||||
|
|
||||||
func (d *DB) InsertSignup(su *TownSignup) error {
|
func (d *DB) InsertSignup(su *TownSignup) error {
|
||||||
stmt, err := d.db.Prepare(`
|
stmt, err := d.db.Prepare(`
|
||||||
INSERT INTO signups (created, email, how, why, links, extra) VALUES(
|
INSERT INTO signups (created, email, how, why, links) VALUES(
|
||||||
?, ?, ?, ?, ?
|
?, ?, ?, ?, ?
|
||||||
) RETURNING id
|
) RETURNING id
|
||||||
`)
|
`)
|
||||||
|
|
Loading…
Reference in New Issue