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

Optional cog "simplewriter" that enforces xkcd's simple writer in a text channel #367

Open
wants to merge 19 commits into
base: master
Choose a base branch
from

Conversation

JoshuaS3
Copy link
Contributor

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:

image

This should lead to some pretty fun and interesting conversations.

@JoshuaS3
Copy link
Contributor Author

should be my last commit on this branch

@JoshuaS3
Copy link
Contributor Author

I lied

futaba/cogs/optional/simplewriter/core.py Outdated Show resolved Hide resolved
__all__ = ["core_words_list"]

core_words_list = []
core_words_list_path = os.path.join(os.path.dirname(__file__), "core_words_list.txt")
Copy link
Collaborator

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.

Copy link
Contributor Author

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
@landyacht
Copy link

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.

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

Successfully merging this pull request may close these issues.

3 participants