Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
6ff73ab
1
Parent(s):
6324a2a
Update utils.py
Browse files- Powers/plugins/utils.py +3 -2
Powers/plugins/utils.py
CHANGED
@@ -252,9 +252,10 @@ BASE = "https://nekobin.com/"
|
|
252 |
|
253 |
async def paste(content: str):
|
254 |
resp = await post(f"{BASE}api/documents", data=content)
|
255 |
-
|
|
|
256 |
return
|
257 |
-
return BASE +
|
258 |
|
259 |
|
260 |
@Gojo.on_message(command("paste"))
|
|
|
252 |
|
253 |
async def paste(content: str):
|
254 |
resp = await post(f"{BASE}api/documents", data=content)
|
255 |
+
key = resp["result"]["key"]
|
256 |
+
if not key:
|
257 |
return
|
258 |
+
return BASE + key
|
259 |
|
260 |
|
261 |
@Gojo.on_message(command("paste"))
|