dzejkob-b / discord_irc_pugbot

This is PUGBOT for pickup games which processing multiple message sources (irc, discord) build on node.js technology.
https://github.com/dzejkob-b/discord_irc_pugbot
5 stars 1 forks source link

Individual inactivity player-removal timer #28

Open fsk10 opened 4 years ago

fsk10 commented 4 years ago

Add a command that players can use to set their own inactivity-timer limit, to be removed from the pug if their inactivity reaches the limit. Currently the PUGBOT removes you after 4 hours of inactivity, but this new feature would instead mean that every player can set their own limit.

Example: .setidlelimit Default limit: 120 minutes Minimum allowed limit: 15 minutes Turn off inactivity removal: 0 If a user sets a value higher than 1440 it will set itself to 0 (off).

oreleraki commented 4 years ago

Also maybe leverage Discord presence status also. Discord User presence status is changing to 'offline' after 5m (hardcoded) he didn't touch his computer. Can we maybe use that, and send a user message when he is being deleted for inactivity ?

fsk10 commented 4 years ago

Also maybe leverage Discord presence status also. Discord User presence status is changing to 'offline' after 5m (hardcoded) he didn't touch his computer. Can we maybe use that, and send a user message when he is being deleted for inactivity ?

The idea behind this feature is to let the users decide their inactivity removal time instead of having the current 4h idle timer. So by using a hardcoded value of 5minutes to remove the user it does feel even worse and a bit the opposite to the request :)

But i agree that the user and others in the pug should see that it has been done. So we should continue having a channel msg that the user has been removed. Perhaps even @-mention the user in the message.