diff options
author | root <root@audiopole.in.bpm> | 2019-02-05 03:22:39 +0000 |
---|---|---|
committer | root <root@audiopole.in.bpm> | 2019-02-05 03:22:39 +0000 |
commit | 8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4 (patch) | |
tree | 1f33603338d69148c0e2c7f558e10c828591412d /README | |
download | qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.gz qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.tar.bz2 qotdserver-8df182e6d1eaa9a0fd6323b9b6c22f118b28acd4.zip |
initial
Diffstat (limited to 'README')
-rw-r--r-- | README | 34 |
1 files changed, 34 insertions, 0 deletions
@@ -0,0 +1,34 @@ +qotdserver 1.0 +Copyright (C) 2019 Richard Knight + + +Implementation of RFC865: TCP quote of the day server, using a postgresql +database for quote retrieval and threaded connection handling. + + + +EXAMPLE QUOTES +A couple of thousand quotes are included in the create_db.sql script. These +have been scraped from some websites and in general contain a lot of profanity, +potentially transgressive content and edginess. If that's a problem, don't +use them. + + + +CHANGING / ADDING QUOTES +When installed, the database table used features three notable columns: quote, +author and source. Quote must always be present, but author and source are +optional. +Insert new quotes to the database with a statement such as the following: + + INSERT INTO quote (quote, author, source, created) + VALUES ('Yes, it is Friday', 'T. Westwood', 'The Ether', current_timestamp); + +created and the value current_timestamp are optional and currently just exist +to log when a new quote was inserted to the database. + + +INIT +There is no init script at the moment so you will need to create your own, +add to rc.local (or similar), or start manually. + |