From e7fadb8d71c6ae8ca3df3659c6a9d84a70be9e0d Mon Sep 17 00:00:00 2001 From: SosoM1k0r31z31 Date: Fri, 13 Nov 2020 11:46:36 +0300 Subject: [PATCH] fix dictionary variable --- bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot.py b/bot.py index bb40148..e038ae5 100644 --- a/bot.py +++ b/bot.py @@ -1537,7 +1537,7 @@ async def animesearch(ctx, *, anime): @bot.command() async def define(ctx, *, term): - url = f"https://api.dictionaryapi.dev/api/v2/entries/en/bruh" + url = f"https://api.dictionaryapi.dev/api/v2/entries/en/{term}" headers = {'User-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:80.0) Gecko/20100101 Firefox/80.0'} r = requests.get(url, headers=headers)