Skip to content
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

Prevent long results from flooding #7

Closed
dgw opened this issue Sep 26, 2016 · 0 comments · Fixed by #8
Closed

Prevent long results from flooding #7

dgw opened this issue Sep 26, 2016 · 0 comments · Fixed by #8
Assignees

Comments

@dgw
Copy link
Owner

dgw commented Sep 26, 2016

Certain queries generate results with many lines. The module currently outputs the entire result, no matter how many lines it is, causing flood and potentially getting the bot kicked or delaying other modules' output in other channels.

Before supporting wolframalpha 3.0 (#5), this should be fixed in the current version.

Rizon's Internets bot deals with the problem by sending the result in NOTICEs to the trigger.nick if the result is too big. Alternative solutions:

  • output the first 2-3 lines, and then put a link in chat to the Wolfram|Alpha site for the full result
  • output the first 2-3 lines, then send the rest via notice to the calling user
  • output the first few lines, then buffer the rest in some kind of continue mechanism (arguably the least user-friendly way to handle this for IRC)
  • refuse to output a result if it's too long; just reply with a link (actually the least user-friendly choice)
@dgw dgw self-assigned this Sep 26, 2016
@dgw dgw closed this as completed in #8 Oct 21, 2016
dgw added a commit that referenced this issue Oct 21, 2016
Send results longer than 3 lines as NOTICEs to calling user; resolves #7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant