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

Add rainy and golden lure #348

Open
wants to merge 1 commit into
base: new-core
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions meowth/exts/wild/wild_cog.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,10 @@ def name(self):
return 'Magnetic Lure Module'
if self.kind == 'mossy':
return 'Mossy Lure Module'
if self.kind == 'rainy':
return 'Rainy Lure Module'
if self.kind == 'golden':
return 'Golden Lure Module'

def img_url(self):
url = ("https://raw.githubusercontent.com/"
Expand Down Expand Up @@ -723,7 +727,7 @@ async def lure(self, ctx, kind, *, location: Pokestop):
"""Report a lured Pokestop.

**Arguments**
*kind:* Glacial, Mossy or Magnetic
*kind:* Glacial, Mossy, Magnetic, Rainy or Golden
*location:* The location of the lure.

If *location* is the name of a known Pokestop,
Expand All @@ -732,7 +736,7 @@ async def lure(self, ctx, kind, *, location: Pokestop):

**Example:** `!lure glacial city park`"""

word_list = ["glacial", "mossy", "magnetic"]
word_list = ["glacial", "mossy", "magnetic", "rainy", "golden"]
result = fuzzymatch.get_match(word_list, kind)
kind = result[0]
if not kind:
Expand Down