Captain Ezio commited on
Commit
d29d7f3
·
1 Parent(s): 9dbe1e7

Update utils.py

Browse files
Files changed (1) hide show
  1. 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(".".1)[-1]
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}