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

.modlist #13

Closed
dubux opened this issue Mar 30, 2012 · 1 comment
Closed

.modlist #13

dubux opened this issue Mar 30, 2012 · 1 comment
Labels

Comments

@dubux
Copy link

dubux commented Mar 30, 2012

Usage of .modlist displays init which should be ignored. Without looking at the code I'm making an assumption that the current method of recognizing modules via .modlist is buy listing all files or ".py" files in the /extras directory. I would recommend a function which reads each module first checking for a she-bang line as well as verifying that all required variables for bruno are set within the file. Files like init would not contain these items and thus not be recognized as a bruno loadable module.

@veiset
Copy link
Owner

veiset commented Mar 30, 2012

It would be impractical to verify all the extra modules before trying to actually load them, as this could possibly cause the bot to do a lot more work than what is sensible. Imagine having to check ~15-20 extra modules each time the bot is asked to list the modules that can currently be loaded.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants