-
Notifications
You must be signed in to change notification settings - Fork 10
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
Optional cog "simplewriter" that enforces xkcd's simple writer in a text channel #367
base: master
Are you sure you want to change the base?
Conversation
Direct copy of XKCD's simplewriter list
pylint warns about too many lines in core_words_list.py. I'd compact the list to use less lines, but black automatically re-expands it.
should be my last commit on this branch |
I lied |
__all__ = ["core_words_list"] | ||
|
||
core_words_list = [] | ||
core_words_list_path = os.path.join(os.path.dirname(__file__), "core_words_list.txt") |
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.
You can't always expect this directory to be writeable, it might be in /usr
or something. Just have a line in the config instead.
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.
This is for a read operation of a text file in the same directory as this source file. The text file will not change and is not configurable through means other than a commit due to the static nature of the source.
Instead of making them partials
This is a fantastic idea, but unfortunately the code appears to be written in Python, which is out of line with our policy. Please revise and submit a new PR. I am immeasurably disappointed. |
When turned on and given a place to work in, this extra bit removes everything not found in the top ten hundred words and their other forms. This works the same as xkcd's simple writer.
When some not allowed words are put up or changed, that message is quickly removed from the place and this extra bit sends a message to the person who wrote it saying something like this:
This should lead to some pretty fun and interesting conversations.