Skip to content

Commit

Permalink
Hotfix: Added missing code after wrong revertion
Browse files Browse the repository at this point in the history
  • Loading branch information
EncryptEx committed Oct 10, 2023
1 parent 463f955 commit 1b592e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down Expand Up @@ -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,
Expand Down
1 change: 1 addition & 0 deletions get_enviroment.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")

0 comments on commit 1b592e3

Please sign in to comment.