Skip to content

Prevent too similar off-topic channel names#511

Merged
kosayoda merged 5 commits into
masterfrom
off-topic-check
Oct 15, 2019
Merged

Prevent too similar off-topic channel names#511
kosayoda merged 5 commits into
masterfrom
off-topic-check

Conversation

@kosayoda
Copy link
Copy Markdown
Contributor

Closes #465

Currently, there is nothing stopping very similar names being added to the rotation, eg. kosa and kosaa.
To solve this, a check is added that rejects names that have a close match using difflib.get_close_matches with a cutoff of 0.8.

1570800432-2019-10-11

A command !otn forceadd or !otn fa was added to override this check and add the name to the rotation anyway.

image

Comment thread bot/cogs/off_topic_names.py Outdated
Comment thread bot/cogs/off_topic_names.py Outdated
Comment thread bot/cogs/off_topic_names.py Outdated
Copy link
Copy Markdown
Contributor

@MarkKoz MarkKoz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for taking the time to clean up some of the other modules.

@jchristgit
Copy link
Copy Markdown
Contributor

zoop, conflicts

@kosayoda kosayoda merged commit 8d78174 into master Oct 15, 2019
@kosayoda kosayoda deleted the off-topic-check branch October 15, 2019 14:38
@MarkKoz MarkKoz added a: fun Related to non-serious, "fun" features (duck pond, off topic channel names) t: enhancement Changes or improvements to existing features labels Aug 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: fun Related to non-serious, "fun" features (duck pond, off topic channel names) t: enhancement Changes or improvements to existing features

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add check to prevent too similar off-topic channel names

3 participants