Shiyinq / anonim-chat

🎭 Anonymously chat with a stranger.
GNU General Public License v3.0
43 stars 26 forks source link

Req Feature #5

Closed lunaticsm closed 1 year ago

lunaticsm commented 1 year ago

great code, but can you add new command like /users to check how many people use the bot or /broadcast to broadcast message to everyone ?

Shiyinq commented 1 year ago

@lunaticsm Thank you Sorry for late response

for command /broadcast can you explain more with the example please

Shiyinq commented 1 year ago

i asume /broadcast is something like send announcement about the bot to users and the command will look like this /broadcast <message> -> /broadcast hello everyone.

but basicly for broadcast we should store user id telegram on database permanently, for now i will hold /broadcast.

i will work on command /users to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.

winqdev commented 1 year ago

i asume /broadcast is something like send announcement about the bot to users and the command will look like this /broadcast <message> -> /broadcast hello everyone.

but basicly for broadcast we should store user id telegram on database permanently, for now i will hold /broadcast.

i will work on command /users to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.

You can get length of all users from database, if im not wrong database save all users

Shiyinq commented 1 year ago

i asume /broadcast is something like send announcement about the bot to users and the command will look like this /broadcast <message> -> /broadcast hello everyone. but basicly for broadcast we should store user id telegram on database permanently, for now i will hold /broadcast. i will work on command /users to check how many people use the bot in current time, this is posible because we have room and queue as temporary data.

You can get length of all users from database, if im not wrong database save all users

Hi @winqdev sorry for the late response.

Yes, of course, we can retrieve the length of all users. However, please note that we don't save the userId permanently in the database. It is only temporarily stored for the queue and roommate purposes.

So, we can simply query the database to check the current number of queues and the current number of roommates.

The /users command will display the current active users by combining the data from the queue and the room.

example: command-> /users response:-> Currently, there are 100 people using the bot.

Shiyinq commented 1 year ago
image

Currently, there are 2 people using the anonim-chat.

Queue: 0 Conversations: 2

Shiyinq commented 1 year ago

already merge to master, i will close this issue.

note: command /broadcast not include

lunaticsm commented 1 year ago

Sorry for very late response, thank's for making this, i thougt it'll not updating. thank's btw. gonna use this script soon. :)

lunaticsm commented 5 months ago

already merge to master, i will close this issue.

note: command /broadcast not include

where do i contact you?

Shiyinq commented 5 months ago

already merge to master, i will close this issue. note: command /broadcast not include

where do i contact you?

email on my github bio