Code Monkey home page Code Monkey logo

rikchan's Introduction

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

rikchan's People

Contributors

hrik2001 avatar

Stargazers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.