added self

This commit is contained in:
phixxy 2024-01-20 22:00:45 -08:00
parent 241829d88e
commit 754d3b466c

View file

@ -29,7 +29,7 @@ class PhixxyCom(commands.Cog):
except: except:
print("PhixxyCom failed to make directories") print("PhixxyCom failed to make directories")
def find_prompt_from_filename(sd_log, filename): def find_prompt_from_filename(self, sd_log, filename):
with open(sd_log, 'r') as f: with open(sd_log, 'r') as f:
lines = f.readlines() lines = f.readlines()
for line in reversed(lines): for line in reversed(lines):