Added logging, fixed some typos in core

This commit is contained in:
Adriene Hutchins 2020-03-03 14:03:50 -05:00
parent 6ff7d823cb
commit 91709f3957
6 changed files with 68 additions and 12 deletions

View file

@ -53,7 +53,6 @@ class Logging():
formatted_tb = ''.join(formatted_tb)
original_exc = traceback.format_exception(
type(error), error, error.__traceback__)
print(original_exc)
# Hastebins Traceback
try:

View file

@ -18,11 +18,11 @@ class Online():
async def hastebin(self, string):
"""Posts a string to hastebin."""
url = "https://hastebin.com/documents"
url = "https://hasteb.in/documents"
data = string.encode('utf-8')
async with self.request.post(url=url, data=data) as haste_response:
haste_key = (await haste_response.json())['key']
haste_url = f"http://hastebin.com/{haste_key}"
haste_url = f"http://hasteb.in/{haste_key}"
return haste_url
def get_webhook(self, url: str):