Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 2.12 KB

README.md

File metadata and controls

39 lines (30 loc) · 2.12 KB

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. or 123.456.789 in ban.txt.
If you are using a cloud based operator then for proper logging and banning you have to replace request.remote_addr with request.headers['X-Real-IP'] (that is what most of the servers use. Ask your host if you have any problem, we have included commented code for the other use too, so you can uncomment and comment code line according to your need)


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