mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-28 22:41:06 -05:00
MCInfo: fix typos in comments
wtf is a "fatch"?
This commit is contained in:
parent
0bc0aa0bf7
commit
9c4ad9acda
@ -92,7 +92,7 @@ class MCInfo(callbacks.Plugin):
|
|||||||
|
|
||||||
soup = BeautifulSoup(article)
|
soup = BeautifulSoup(article)
|
||||||
|
|
||||||
# Find the "Crafting table" displayed in the Wiki fatch showing how to craft something.
|
# Find the "Crafting table" displayed in the Wiki page showing how to craft the item.
|
||||||
crafting_table = soup.find('table', attrs={"data-description": 'Crafting recipes'})
|
crafting_table = soup.find('table', attrs={"data-description": 'Crafting recipes'})
|
||||||
if not crafting_table:
|
if not crafting_table:
|
||||||
irc.error("No crafting information found.", Raise=True)
|
irc.error("No crafting information found.", Raise=True)
|
||||||
@ -105,8 +105,6 @@ class MCInfo(callbacks.Plugin):
|
|||||||
if t == 'Crafting ingredient':
|
if t == 'Crafting ingredient':
|
||||||
irc.error("The item '%s' cannot be crafted." % item, Raise=True)
|
irc.error("The item '%s' cannot be crafted." % item, Raise=True)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Get the first crafting result. TODO: optionally show all recipes if there are more than one.
|
# Get the first crafting result. TODO: optionally show all recipes if there are more than one.
|
||||||
crafting_data = crafting_table.find_all('tr')[1]
|
crafting_data = crafting_table.find_all('tr')[1]
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user