Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NameError: 'fileIO' #4

Open
ChrisWhee1er opened this issue Apr 25, 2018 · 0 comments
Open

NameError: 'fileIO' #4

ChrisWhee1er opened this issue Apr 25, 2018 · 0 comments

Comments

@ChrisWhee1er
Copy link

ChrisWhee1er commented Apr 25, 2018

First off, THANK YOU! I been looking for a cog like this a long time! And the code reads like it's even better than Mee6's version for sure. But I can't get it to run properly ;<
I'm able to get the Cog to run, but half of the script wont work, since it's unable to perform half the commands.
It's probably user error , but I even located the dataIO file and see that the name fileIO is defined.. What could be the issue causing it to NOT be defined in the main Levels cog?
Thanks for any support!

Ignoring exception in message
Traceback (most recent call last):
File "lib\discord\ext\commands\bot.py", line 252, in _run_extra
yield from coro(*args, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python36-32\Red\cog
s\Levels.py", line 195, in gain_xp
fileIO("data/levels/leader_board.json", "save", self.leader_board)
NameError: name 'fileIO' is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant