diff --git a/app/help_methods.py b/app/help_methods.py index cbff3e60..3627c1e2 100644 --- a/app/help_methods.py +++ b/app/help_methods.py @@ -25,6 +25,10 @@ def get_help_message(method): 'Returns a random bird photo', '\nUsage: !birb' ], + 'dale': [ + 'Posts a photo or video of Dale, the goodest boy.', + '\nUsage: !birb' + ], 'redpanda': [ 'Returns a random red panda photo', '\nUsage: !redpanda' diff --git a/app/meme_gen.py b/app/meme_gen.py index 780df1c9..6c5aaa1e 100644 --- a/app/meme_gen.py +++ b/app/meme_gen.py @@ -3,7 +3,7 @@ import requests import help_methods -supported_templates = sorted(list(map(lambda x: x.split('/')[-1], requests.get('https://memegen.link/api/templates/').json().values()))) +supported_templates = sorted(list(map(lambda x: x['id'], requests.get('https://api.memegen.link/templates/').json()))) def parse_message(message): if len(message.split()) <= 2: