Skip to content

I Couldn't find a good altenative Self-Hosted Web Based Chat application with searching so ChatGPT and I worked on this template project, It includes a few things like chatting (duh), moderation tools, and other things.

Notifications You must be signed in to change notification settings

Legostarwars9/HTML-Python_Webchat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 

Repository files navigation

HTML-Python_Webchat

So I was once looking for a Web Based Application like Discord that I could set up in my home on a Raspberry PI mini server that I have. I couldn't find one that I could easily install onto my Raspberry PI and set up within a few minutes...

So with help of ChatGPT, I created one.

--Features--

    Chatting (Duh)

    Simple Moderation Control

      Commands (/delete, /ban, /mute, /ip-ban, /unmute, etc)
      Quick Delete Mode

-Planned Features-

    File Sharing

    Image Imbeding

Bugs

-Stable Bugs-

    Muting users does not work properly

    Banning users does not work properly

-Experimental Bugs-

    Commands Do not work properly

    Admin UI does not load

Usage

How to use

1. Download Latest Release
2. Run chat.py
3. Go to localhost:5000
4. Done

How to host to the internet

1. Start chat.py
2. Port forward port 5000 on your router
3. go to [Your IP]:5000

How to host behind CGNAT

1. Install your favorite reverse proxy (ngrok, playit.gg premium, Cloudflare, etc)
2. Start chat.py
3. Start the reverse proxy provider of your choice on port 5000
4. Go to the IP it gives you OR your custom domain you set up with the proivider.

-Example commmands with Cloudflared free url
[User]/chat> python3 chat.py
[User]/chat> cloudflared --url localhost:5000

How to get Admin

1. Have some access to the device the server is hosted on
2. Navigate to Users.txt
3. Find your User
4. Change [Username]:[Encryped Password]:user > [Username]:[Encryped Password]:admin
5. Log out and log back in

Commands List

    /delete - Deletes a message - Syntax: /delete [Message ID]

    /mute - temporarily mutes a user until unmuted or server restarts - Syntax: /mute [Username] (Muting and Unmuting does not currently work

    /unmute - unmutes a user - Syntax: /unmute [Username]

    /ban - Bans a user - Syntax: /ban [Username] (Currently does not work)

    /unban - Unbans a user - Syntax: /unban [Username]

    /ip-ban - Bans a IP address - /ip-ban [Username] (only in experimental build)

About

I Couldn't find a good altenative Self-Hosted Web Based Chat application with searching so ChatGPT and I worked on this template project, It includes a few things like chatting (duh), moderation tools, and other things.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published