cleartonic / twitchtriviabot

Twitch Trivia Bot
MIT License
23 stars 13 forks source link

Questions not loading and throws error at "Skipping to next question:" #8

Open Goodblue77 opened 5 years ago

Goodblue77 commented 5 years ago

Bot connects fine but the sample questions don't seem to get loaded. I've installed pandas for python 3 so that should be fine.

Twitch Trivia Bot loaded. Version 0.1.3. Developed by cleartonic. 16:31 Goodblue77: !triviastart 16:31 bot: Trivia has been initiated. Generating trivia base for session... 16:31 bot: Trivia has begun! Question Count: 2. Trivia will start in 8 seconds. 16:31 bot: Hint #1: n__ 16:32 bot: Hint #2: n_n 16:32 bot: Question was not answered in time. Answer: nan. Skipping to next question:

And then in the terminal I get this: triviaboterrorp3

Any idea why this happens and how to fix it?

CaptainNewbi commented 2 years ago

In my guess it looks like its having trouble converting a number into a string. Do you have a special character? Possibly your answer contains something that isn't part of your csv_encoding: such as utf-8?

Try changing the answer to a simple string like "answer" and see if it works, if thats the issue, try to re-write the answer or use different encoding. This is just a uneducated guess