kraanzu / gupshup Goto Github PK
View Code? Open in Web Editor NEWA TUI chat application writtten in python
License: MIT License
A TUI chat application writtten in python
License: MIT License
python -m pip install git+https://github.com/kraanzu/gupshup.git change this to python3 -m pip install git+https://github.com/kraanzu/gupshup.git
I've come from your advertisement on Reddit and think this project is very cool. However, I think the "power" concept is a bit confusing. As I understand it now, there is the king
rank which has an infinite power level, thus allowing them to do any command. Any other rank can be assigned a numerical power level and this level changes what commands that rank can access.
The problem I've found is that the moderation commands such as /ban
, /mute
, etc. don't have a pre-defined power level - only the king
rank can use them until the command is made accessible to a power level. This just seems unnecessary and overly complex to map each individual command to a power level.
Personally, I think it would be better if there were predefined power levels such as 1
for a moderator. Moderator commands should then be mapped to power levels of 1
or above. This provides a good foundation for permissions and the owner is able to take this and fine-tune it to their preferences. For example, if they wanted an admin
rank with power level 2
, they could make moderators only be able to mute and admins be able to ban.
I've not had an in-depth look at this project, however, so if I've missed something, please let me know :)
EDIT:
TL;DR IMO, there should be predefined power levels such as 1
for moderator and 2
for admin just to make setting up permissions easier since most owners are going to want roughly the same permission setup.
On an empty directory on Windows I did
git clone https://github.com/kraanzu/gupshup.git
cd gupshup
pip install .
Then I tried gupshup --server
and opened a new command-line window in the same folder, gupshup -u foo
. Besides multiple asyncio.exceptions.CancelledError messages which I did not analyze further, the following Unicode encoding error message appeared:
UnicodeEncodeError: 'charmap' codec can't encode character '\uf6d6' in position
18: character maps to
Hi, Gushup doesn't start.
Install output
https://pastebin.com/EhLnTd2r
Startup error
https://pastebin.com/RpvW8iw2
System information:
Archlinux kde plasma version 5.24.4
Python 3.10.4-1
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.