diff options
author | 2019-04-28 17:33:22 +0100 | |
---|---|---|
committer | 2019-04-28 17:33:22 +0100 | |
commit | c537f29473a2ae8e1b8da0f3e1ffa6929d22f7be (patch) | |
tree | 474978ffe9502a24bbbb5c2df3d28daead65a629 | |
parent | Removed code that was added for debugging purposes. (diff) |
Fixed linting errors.
-rw-r--r-- | bot/seasons/easter/bunny_name_generator.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/bot/seasons/easter/bunny_name_generator.py b/bot/seasons/easter/bunny_name_generator.py index df1f0e28..7d40e219 100644 --- a/bot/seasons/easter/bunny_name_generator.py +++ b/bot/seasons/easter/bunny_name_generator.py @@ -1,11 +1,10 @@ -import random import json import logging +import random import re - -from discord.ext import commands from pathlib import Path +from discord.ext import commands log = logging.getLogger(__name__) @@ -41,8 +40,8 @@ class BunnyNameGenerator(commands.Cog): def find_spaces(displayname): """ - Check if Discord name contains spaces so we can bunnify - an individual word in the name. + Check if Discord name contains spaces so we can bunnify an individual word in the name. + Spaces should not be bunnified so we remove them from the list that is returned from the pattern matching. """ @@ -55,6 +54,8 @@ class BunnyNameGenerator(commands.Cog): def find_vowels(displayname): """ + Finds vowels in the user's display name. + If the Discord name contains a vowel and the letter y, it will match one or more of these patterns. Only the most recently matched pattern will apply the changes. |