nomicness / a-whole-new-world

2 stars 7 forks source link

Happy #116

Closed ArchmageInc closed 8 years ago

ArchmageInc commented 8 years ago

TypeError: Cannot read property 'name' of undefined at /nomic-bot/dist/universe/world/base-world.js:116:49 at Array.filter (native) at getCommentsForPlayer (/nomic-bot/dist/universe/world/base-world.js:115:34) at _callee$ (/nomic-bot/dist/universe/world/utils.js:23:32) at tryCatch (/nomic-bot/node_modules/regenerator-runtime/runtime.js:62:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/nomic-bot/node_modules/regenerator-runtime/runtime.js:336:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/nomic-bot/node_modules/regenerator-runtime/runtime.js:95:21) at step (/nomic-bot/dist/universe/world/utils.js:48:191) at /nomic-bot/dist/universe/world/utils.js:48:361 at process._tickCallback (internal/process/next_tick.js:103:7)

jimmyhmiller commented 8 years ago

How did you make this happen?

ArchmageInc commented 8 years ago

by typing /happy in the audit history

ArchmageInc commented 8 years ago

TypeError: Cannot read property 'comments_url' of undefined at getCommentsUrl (/nomic-bot/dist/universe/world/base-world.js:99:35) at _callee$ (/nomic-bot/dist/universe/world/utils.js:23:32) at tryCatch (/nomic-bot/node_modules/regenerator-runtime/runtime.js:62:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/nomic-bot/node_modules/regenerator-runtime/runtime.js:336:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/nomic-bot/node_modules/regenerator-runtime/runtime.js:95:21) at step (/nomic-bot/dist/universe/world/utils.js:48:191) at /nomic-bot/dist/universe/world/utils.js:48:361 at process._tickCallback (internal/process/next_tick.js:103:7)

ArchmageInc commented 8 years ago

That happens when a comment is added to a code file

ArchmageInc commented 8 years ago

That might be a different issue

jimmyhmiller commented 8 years ago

I will look into it.

jimmyhmiller commented 8 years ago

This happens when nomic-bot posts a comment. I also know why happy is broken and I will fix it.

ArchmageInc commented 8 years ago

Happy is still broken, though no errors are being thrown.

jimmyhmiller commented 8 years ago

That's because I'm an idiot and got the condition backwards. If it is > 1 you can't do it. Will fix.

jimmyhmiller commented 8 years ago

Can't edit on mobile. Ignore what I said above.

jimmyhmiller commented 8 years ago

I know the solutions, but I'm still an idiot.