Captain Ezio commited on
Commit
c973f55
·
1 Parent(s): 6b6b648

Fixed minor issues working on major one

Browse files
Files changed (2) hide show
  1. Powers/plugins/dev.py +1 -1
  2. Powers/plugins/notes.py +1 -1
Powers/plugins/dev.py CHANGED
@@ -35,7 +35,7 @@ async def send_log(c: Gojo, m: Message):
35
  )
36
  # Send logs
37
  with open(LOGFILE) as f:
38
- raw = (await (f.read()))[1]
39
  await m.reply_document(
40
  document=LOGFILE,
41
  quote=True,
 
35
  )
36
  # Send logs
37
  with open(LOGFILE) as f:
38
+ raw = ((f.read()))[1]
39
  await m.reply_document(
40
  document=LOGFILE,
41
  quote=True,
Powers/plugins/notes.py CHANGED
@@ -67,7 +67,7 @@ async def save_note(_, m: Message):
67
  async def get_note_func(c: Gojo, m: Message, note_name, priv_notes_status):
68
  """Get the note in normal mode, with parsing enabled."""
69
  reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
70
- reply_msg_id = m.reply_to_message.message_id if m.reply_to_message else m.message_id
71
  if m and not m.from_user:
72
  return
73
 
 
67
  async def get_note_func(c: Gojo, m: Message, note_name, priv_notes_status):
68
  """Get the note in normal mode, with parsing enabled."""
69
  reply_text = m.reply_to_message.reply_text if m.reply_to_message else m.reply_text
70
+ reply_msg_id = m.reply_to_message_id if m.reply_to_message else m.id
71
  if m and not m.from_user:
72
  return
73