From 1b592e3765222f1f3f2316d95f482eafefab8183 Mon Sep 17 00:00:00 2001 From: EncryptEx Date: Tue, 10 Oct 2023 09:15:08 +0200 Subject: [PATCH] Hotfix: Added missing code after wrong revertion --- bot.py | 4 +++- get_enviroment.py | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 9e14467..6c17307 100644 --- a/bot.py +++ b/bot.py @@ -5,6 +5,7 @@ import sqlite3 import sys import urllib +import requests from email import message from os import listdir from os.path import isfile @@ -28,6 +29,7 @@ from get_enviroment import SECURITY_GUILD from get_enviroment import SWEAR_WORDS_LIST from get_enviroment import TOKEN +from get_enviroment import FEMTOLINK # Language Loading @@ -385,7 +387,7 @@ def ShortenLink(link: str): "Content-Type": "application/json", } - data = '{ "long_url": "' + uurl + '" }' + data = '{ "long_url": "' + link + '" }' response = requests.post("https://femtolink.jaumelopez.dev/api/link", headers=headers, diff --git a/get_enviroment.py b/get_enviroment.py index f05ebfd..f812249 100644 --- a/get_enviroment.py +++ b/get_enviroment.py @@ -12,3 +12,4 @@ SECURITY_GUILD = os.getenv("SECURITYGUILD") SECURITY_CHANNEL = os.getenv("SECURITY") SWEAR_WORDS_LIST = os.getenv("BANNEDWORDS", "").split(",") +FEMTOLINK = os.getenv("FEMTOLINK") \ No newline at end of file