#6 request: graph of usercounts

Stängd
öppnade 6 år sedan av mouz · 3 kommentarer
mouz kommenterad 6 år sedan

Have a command !usercounts, which outputs an ascii art graph in a private message. The graph should depict the number of users (in a certain channel, at 22:00 CET) as a function of time. The time domain should be the last 10 days.

If the command is not given in a channel, the output should be a usage message, informing the user to supply a channel name. The command should be given in a channel (see below).

Have a command !usercounts, which outputs an ascii art graph in a private message. The graph should depict the number of users (in a certain channel, at 22:00 CET) as a function of time. The time domain should be the last 10 days. <del>If the command is not given in a channel, the output should be a usage message, informing the user to supply a channel name.</del> The command should be given in a channel (see [below](https://notabug.org/mouz/bot/issues/6#issuecomment-11643)).
mouz stängde 5 år sedan
mouz kommenterad 5 år sedan
Ägare

example output:

   .
   .                 * 
 5 -     *           *
   .  *  *           *            
   .  *  *           *            
   .  *  *     *  *  *  *     *  *
   .  *  *  *  *  *  *  *  *  *  *
 0 - fr sa su mo tu we th fr sa su
example output: ``` . . * 5 - * * . * * * . * * * . * * * * * * * * . * * * * * * * * * * 0 - fr sa su mo tu we th fr sa su ```
mouz återöppnade 5 år sedan
mouz kommenterad 5 år sedan
Ägare

If the channel name would be an argument, anyone would be able to retrieve usercounts for any channel the bot is in. To prevent this the command should always be given in a channel. This also implies that there is no need for an explicit argument for this command.

If the channel name would be an argument, anyone would be able to retrieve usercounts for any channel the bot is in. To prevent this the command should always be given in a channel. This also implies that there is no need for an explicit argument for this command.
mouz kommenterad 5 år sedan
Ägare

Closing. I decided not to implement this. Reason: admins would be able to know the number of users in channels they're not attending (by reading the file that stores the counts per channel).

Closing. I decided not to implement this. Reason: admins would be able to know the number of users in channels they're not attending (by reading the file that stores the counts per channel).
mouz stängde 5 år sedan
Logga in för att delta i denna konversation.
Ingen Etikett
Ingen Milsten
Ingen förvärvare
1 Deltagare
Laddar...
Avbryt
Spara
Det finns inget innehåll än.