MarkSpencerTan / pokemaster_bot

A discord pokemon rpg bot made with python
MIT License
7 stars 6 forks source link

catch gives an error, and does the bot spawn? #1

Open imLifeline opened 3 years ago

imLifeline commented 3 years ago

Donno if u still continue this project but worth a shot, so the !poke catch gives an error when used: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: 'national_id and idk what that means, and also does this bot spawn pokemons? Responding will be a great help! Thank you

Alpha62579 commented 3 years ago

Actually I'm also facing the same error... After going through the database and the code, I realized it's because the data format has changed since this repo was last updated.

Alpha62579 commented 3 years ago

I think I have fixed the issue (there were multiple issues besides the national_id problem)

MarkSpencerTan commented 3 years ago

@hhhunterwolf Sorry I haven't been able to get back to you recently been too busy with work and grad school so haven't had much time to maintain these projects :(. It does spawn a random pokemon and saves it to your account name you're using for discord in the database you specified. Here's a screenshot of what it does back when it was still working:

image

Like @surya62579 mentioned it might be due to the pokemon API's format changing that could've caused the errors you're seeing now. I'll have to confirm but it definitely changed before and had a similar issue.

@surya62579 if you can please send in a Pull Request of your changes I can review it and push it in so that others can benefit, thanks!

Alpha62579 commented 3 years ago

Ok. Sorry for not replying to you for a long time since I moved my attention to a bot that I'm working on currently.

Alpha62579 commented 3 years ago

I have made a pull request.