mirror of
https://github.com/polyjitter/searchbot-discord.git
synced 2024-08-14 22:46:55 +00:00
Added logging, fixed some typos in core
This commit is contained in:
parent
6ff7d823cb
commit
91709f3957
6 changed files with 68 additions and 12 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue