Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
a0b67aa
1
Parent(s):
5e876b6
Update utils.py
Browse files- Powers/plugins/utils.py +1 -1
Powers/plugins/utils.py
CHANGED
|
@@ -325,7 +325,7 @@ async def paste_func(_, message: Message):
|
|
| 325 |
return await m.edit("Only text files can be pasted.")
|
| 326 |
|
| 327 |
doc = await message.reply_to_message.download()
|
| 328 |
-
exe = doc.rsplit("."
|
| 329 |
async with aiofiles.open(doc, mode="r") as f:
|
| 330 |
fdata = await f.read()
|
| 331 |
content = {'content':fdata}
|
|
|
|
| 325 |
return await m.edit("Only text files can be pasted.")
|
| 326 |
|
| 327 |
doc = await message.reply_to_message.download()
|
| 328 |
+
exe = doc.rsplit(".",1)[-1]
|
| 329 |
async with aiofiles.open(doc, mode="r") as f:
|
| 330 |
fdata = await f.read()
|
| 331 |
content = {'content':fdata}
|