-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
adjusted speed to message length #102
Conversation
@@ -13,6 +14,11 @@ | |||
|
|||
|
|||
NICEDAY_API_URL = os.getenv('NICEDAY_API_ENDPOINT') | |||
# proportional factor between the number of words in a message and the time to wait before the | |||
# newt message is delivered | |||
WORDS_PER_SECOND = 5 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, ok, so this is the fix for the PF app spamming users with 6000 messages a minute like a deranged stalker?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ahahah yes, now it should be less annoying (if possible).
# newt message is delivered | ||
WORDS_PER_SECOND = 5 | ||
# maximum delay between a message and the next one | ||
MAX_DELAY = 10 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also units of seconds, I assume?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yep, I'm updating the definition
Co-authored-by: Robin Richardson <raar1@users.noreply.github.com>
Kudos, SonarCloud Quality Gate passed! |
Fixes: PerfectFit-project/virtual-coach-issues#360
Fixes: PerfectFit-project/testing-tickets#3
The messages sending thorough the API happens when the dialogs are externally triggered. The response is sent to the API through the
custom_channels.py
. A delay between one message and the other has been added there.