Limit number of variables a user can define #19

Open
opened 2020-10-18 20:55:06 +00:00 by projectmoon · 1 comment
Owner

Limit the maximum number of variables a user can define in order to prevent abuse of the bot.

  • Room limit: how many variables can be defined in a specific room.
  • Global limit: how many total variables can be defined.

Checklist:

  • Increment a room limit key in the variables namespace if a new variable is defined (not updated).
  • Increment a global limit key in the variables namespace if a new variable is defined (not updated).
  • Decrement room limit key when variable deleted.
  • Decrement global limit key when variable deleted.
  • Deny !set of new variables when limit(s) reached (probably compare and swap)
Limit the maximum number of variables a user can define in order to prevent abuse of the bot. * Room limit: how many variables can be defined in a specific room. * Global limit: how many total variables can be defined. Checklist: - [x] Increment a room limit key in the variables namespace if a new variable is defined (not updated). - [ ] Increment a global limit key in the variables namespace if a new variable is defined (not updated). - [x] Decrement room limit key when variable deleted. - [ ] Decrement global limit key when variable deleted. - [x] Deny !set of new variables when limit(s) reached (probably compare and swap)
Author
Owner

This is now implemented on a per-room basis.

This is now implemented on a per-room basis.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: projectmoon/tenebrous-dicebot#19
No description provided.