Skip to content

Commit ad12c17

Browse files
committed
corrected @hook decorator so that all mfp aliases are defined in one call
1 parent dd826aa commit ad12c17

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

plugins/myfitnesspal.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
scrape_url = "http://www.myfitnesspal.com/food/diary/{}"
99

1010

11-
@hook.command('mfp')
12-
@hook.command('myfitnesspal')
11+
@hook.command('mfp', 'myfitnesspal')
1312
def mfp(text, bot):
1413
"""<user> - returns macros from the MyFitnessPal food diary of <user>"""
1514
request = requests.get(scrape_url.format(text))

0 commit comments

Comments
 (0)