Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
998d009
1
Parent(s):
d1b5bc3
testing
Browse files- Powers/plugins/utils.py +5 -4
Powers/plugins/utils.py
CHANGED
@@ -248,13 +248,14 @@ async def github(_, m: Message):
|
|
248 |
|
249 |
|
250 |
pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$|x-sh$|x-shellscript$")
|
251 |
-
BASE = "https://
|
|
|
252 |
|
253 |
async def paste(content: str):
|
254 |
-
resp = await post(f"{BASE}api/
|
255 |
-
if not resp["
|
256 |
return
|
257 |
-
return BASE + resp["
|
258 |
|
259 |
|
260 |
@Gojo.on_message(command("paste"))
|
|
|
248 |
|
249 |
|
250 |
pattern = re.compile(r"^text/|json$|yaml$|xml$|toml$|x-sh$|x-shellscript$")
|
251 |
+
BASE = "https://batbin.me/"
|
252 |
+
|
253 |
|
254 |
async def paste(content: str):
|
255 |
+
resp = await post(f"{BASE}api/v2/paste", data=content)
|
256 |
+
if not resp["success"]:
|
257 |
return
|
258 |
+
return BASE + resp["message"]
|
259 |
|
260 |
|
261 |
@Gojo.on_message(command("paste"))
|