jh0ker / mau_mau_bot

Telegram Bot that allows you to play Mau Mau (UNO) via inline queries
GNU Affero General Public License v3.0
312 stars 231 forks source link

Can you add a feature of deleting all the messages after game ended? #119

Open alexonelifer opened 1 year ago

alexonelifer commented 1 year ago

It would be great if that was possible to happen! Thank you!

DO97 commented 11 months ago

My two cents: it's useless. The reason is that this bot is not intended to be played in a group where you play with or chat about something else.

If all the messages gets deleted, then what happens to all the other messages in between? They stay there without a context? It doesn't seem nice. And if all the messages gets deleted, then how do you exclude the ones that are not related to the game?

hybridvamp commented 10 months ago

in my openion it is possible, lemme give it a try

DO97 commented 10 months ago

in my openion it is possible, lemme give it a try

Absolutely possible, but how do you manage user messages? They stay there without a context? Or do you delete everything between the creation and the end of the game?

hybridvamp commented 10 months ago

can save ids of valid game moves and after complition delete all of them

DO97 commented 10 months ago

can save ids of valid game moves and after complition delete all of them

Two issues:

  1. Not all game messages are sent by bot.
  2. With that method, you're not able to delete messages related to the game.
hybridvamp commented 10 months ago

Even though the messages aren't sent by the bot, it's being registered by the bot

On Sat, Dec 30, 2023, 11:14 PM DO97 @.***> wrote:

can save ids of valid game moves and after complition delete all of them

Two issues:

  1. Not all game messages are sent by bot.
  2. With that method, you're not able to delete messages related to the game.

— Reply to this email directly, view it on GitHub https://github.com/jh0ker/mau_mau_bot/issues/119#issuecomment-1872586840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVWCGGIS4ZREIWU7TRM4CLYMBR3HAVCNFSM6AAAAAA4GGKTBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGU4DMOBUGA . You are receiving this because you commented.Message ID: @.***>

hybridvamp commented 10 months ago

Also can just make a list of it and run a for loop at the end of every game

On Sat, Dec 30, 2023, 11:21 PM Zain @.***> wrote:

Even though the messages aren't sent by the bot, it's being registered by the bot

On Sat, Dec 30, 2023, 11:14 PM DO97 @.***> wrote:

can save ids of valid game moves and after complition delete all of them

Two issues:

  1. Not all game messages are sent by bot.
  2. With that method, you're not able to delete messages related to the game.

— Reply to this email directly, view it on GitHub https://github.com/jh0ker/mau_mau_bot/issues/119#issuecomment-1872586840, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALVWCGGIS4ZREIWU7TRM4CLYMBR3HAVCNFSM6AAAAAA4GGKTBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNZSGU4DMOBUGA . You are receiving this because you commented.Message ID: @.***>

DO97 commented 10 months ago

Still, you should also consider commands and I don't find any reason to maintain messages without context in a group. What happens if I say "Damn, that hurts" in response to a +4 and after a minute or two no one understands why I sent that?

Create a group for it and the problem is solved.

hybridvamp commented 10 months ago

Still, you should also consider commands and I don't find any reason to maintain messages without context in a group. What happens if I say "Damn, that hurts" in response to a +4 and after a minute or two no one understands why I sent that?

Create a group for it and the problem is solved.

or you can make a toggle for auto delete

DO97 commented 10 months ago

Still, you should also consider commands and I don't find any reason to maintain messages without context in a group. What happens if I say "Damn, that hurts" in response to a +4 and after a minute or two no one understands why I sent that? Create a group for it and the problem is solved.

or you can make a toggle for auto delete

For what? A detrimental feature that requires efforts for nothing?

hybridvamp commented 10 months ago

Still, you should also consider commands and I don't find any reason to maintain messages without context in a group. What happens if I say "Damn, that hurts" in response to a +4 and after a minute or two no one understands why I sent that? Create a group for it and the problem is solved.

or you can make a toggle for auto delete

For what? A detrimental feature that requires efforts for nothing?

Ii belive someone started this issue because of its need