Migrated from Forgejo: mattc-old/yikchan
  • Python 59%
  • CSS 24.8%
  • HTML 13.5%
  • Makefile 2.5%
  • JavaScript 0.2%
Find a file
2022-05-04 20:28:41 -04:00
static making it easier to theme and brand 2022-05-03 16:55:16 -04:00
templates making it easier to theme and brand 2022-05-03 16:55:16 -04:00
.gitignore more branding convienence 2022-05-03 17:00:55 -04:00
app.py :trustmebro: 2022-05-04 20:28:41 -04:00
config.py readme, format, ensure wordlist 2022-05-03 17:03:52 -04:00
default.config webhook go brr 2022-05-04 17:09:55 -04:00
forbidden.txt hmm perhaps now? 2022-05-03 21:10:29 -04:00
fortune.py Initial commit 2022-01-29 21:12:14 -05:00
Makefile update the update target 2022-05-03 17:04:17 -04:00
postlib.py webhook go brr 2022-05-04 17:09:55 -04:00
profanity_wordlist.txt whoopsie 2022-05-03 18:47:45 -04:00
README.md readme, format, ensure wordlist 2022-05-03 17:03:52 -04:00
requirements.txt webhook go brr 2022-05-04 17:09:55 -04:00
sed.py don't repeat theme prompt 2022-05-03 17:07:09 -04:00
yikchan.service grrr 2022-05-02 04:17:27 +00:00

yikchan

bucknell.wtf sourcecode

deployment

  • edit default.config, or make a new file, with the same format, suiting your needs.
    • if you make a new file, you'll need to add it to the arguements when running app.py. Example: python3 app.py my_custom.config
    • app.py assumes you'd like to use default.config otherwise.
  • check the big ol' block at the top of app.py to make sure it suits your needs
    • if you use the yikchan.service, the port is always 8000
  • check and tweak any of the files under static and templates as desired
    • In HTML templates, {{variables}} are used to insert data from Python code. You can of course edit the surrounding tags, but the underlying data comes from the Flask app. (which is very simple, so you could of course tweak it too.)
  • check and tweak forbidden.txt as desired. Each line is a word or phrase that, if included in a post, will prevent it being posted. (Primitive spam prevention measure.)
  • run python3 app.py (or gunicorn w/ some proxy if you're doing production. i'm not your mom, i won't judge)
    • You could use make deploy to automate above and also copy the example yikchan.service automatically.

sources

CSS

(With some modifications, that can be seen in the static dir)