Skip to content
forked from ayush-lab/RikChan

A Futaba like imageboard or chan, made from flask and python

License

Notifications You must be signed in to change notification settings

lostfile/RikChan

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RikChan

A simple chan framework made in python

Installation Guide

First run setup.py (it has no arguements). After that to make/manage accounts you have to use account.py.
python account.py <username> <password> <rank number>
This code generates a new account (Substitute values of username , password and rankid without the <>). Rankid represents authority.

  • 2 represents admin
  • 1 represents moderator
  • 0 represents janitor

If you want to change password of already existing account. Type

python account.py cp <username> <newpassword> Similarly for new rank id

python account.py cr <username> <newrank> If both needs to be changed

python account.py cpr <username> <newpassword> <newrank>
If you want to create a new board. Go to /_ct_ as admin.
If you want to post as admin or moderator simply type <username>#<password>#<the name you want to post as. If you just want to post as your username type <username>#<password>
RikChan already comes with 3 banners at static/banners folder. Put any image file in that folder (file shouldn't be hidden). And RikChan will load it up.

To delete stuff as an admin, log in as admin and then mark with checkboxes just like how you will do in normal delete but you don't need to give any password.

Suppose you want to ban ip address 123.456.789.012 just put it in the ban.txt file. Suppose you want to range ban 123.456.789.* , then just put 123.456.789. in ban.txt.
If you are using a cloud based operator then for proper logging and banning you have to use request.headers['X-Real-IP'] rather than request.remote_addr (that is what most of the servers or load balancers use. ) RikChan detects it automatically but in case your hoster uses something else, change request.headers['X-Real-IP'] with what your hoster specifies.


Working chan at RikChan

Todo

  • Archiving and pinning posts

Credits

  • The three banners that already come with RikChan are the work of an anonymous poster at RikChan

About

A Futaba like imageboard or chan, made from flask and python

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 55.4%
  • HTML 38.3%
  • CSS 6.3%