-
Notifications
You must be signed in to change notification settings - Fork 30
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
no list
command
#5
Comments
Sounds good ideally, but ecmabot has way too many factoids to print. You can use the !find command to list the first 5 factoids that have the text contents of its argument. (If you call !find without an argument, then you get 5 random factoids) |
Any way it could support paging? ie |
As long as it only sends the list to one user and not the channel I think this would be fine. |
@dsamarin why close this? it's still a valid feature request. |
It could create a gist with all of the factoids. |
I'd rather it print them out than dump an easily copyable list - that makes it easier to abuse. |
What's the use case for this? |
Might I suggest to @inimino a symlink to ecmabot-factoids.json on his server? |
The point here is a generic thing for oftn-bot, not just for ecmabot. And no, I don't want people getting that entire list, because then they will troll through the factoids, and delete, edit, etc. |
If you're worried about that, then not listing them at all seems safest. But again, what's the use case for this? Why would I ever use the command if I wasn't looking to do evil things. It's not exactly user friendly. |
thats true. The use case is to know if something already exists so it can be improved, before adding a redundant new one. Perhaps it's better not to have this feature, though, since any form of browsing makes abuse likely, absent a permissions system. |
Then perhaps we could improve the search feature. If we only allow it in private messages then it could output multiple lines, one for each matching factoid including the contents, limited to say 10. |
The need for browsing is when there's nothing searchable, because I don't know the exact wording someone used in their factoid. |
as by now implemented already in babelboot (oftnbot too? irrelevant tho), any output beyond limit is pasted to gist (or whereever). right now the maxout is btw set annoyingly low when printing errors. so you like always have to open the paste to figure out even the error message. pasting to gist would also allow to use markdown templates and/or prettyfiers in dependency of the output. talking about Errors, babelboot and gist: the template for errors would be such an example. using correct formatting that ^ marker is allowed to be useful. but listing factoids doesn't seem very ambitious at all. how about making a js vm providing greetz, hag |
I don't think we want the bot to be fully dynamically configurable - that adds a bunch of security risks. The |
There isn't currently any way to list all factoids. something like
list
would be ideal to list all currently known factoids.The text was updated successfully, but these errors were encountered: