From 11d137ea9e86330ade7f7f98927520e649128a92 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Sun, 4 Jul 2021 16:11:44 -0700 Subject: [PATCH] Adding help for the dale command --- app/help_methods.py | 4 ++++ app/meme_gen.py | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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: