Open jmhummel opened 8 years ago
Ran locally, got this error on game start:
Getting DM channel for jeremy
/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:579
throw e;
^
TypeError: SlackApiRx.getOrOpenDm.subscribe is not a function
at _loop (/Users/jhummel/github/slack-poker-bot/src/texas-holdem.js:491:34)
at TexasHoldem.dealPlayerCards (/Users/jhummel/github/slack-poker-bot/src/texas-holdem.js:484:45)
at TexasHoldem.playHand (/Users/jhummel/github/slack-poker-bot/src/texas-holdem.js:103:10)
at /Users/jhummel/github/slack-poker-bot/src/texas-holdem.js:56:27
at /Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:4924:20
at tryCatcher (/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:567:29)
at InnerObserver.onNext (/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:4806:43)
at InnerObserver.tryCatcher (/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:567:29)
at AutoDetachObserverPrototype.next (/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:5274:51)
at AutoDetachObserver.Rx.internals.AbstractObserver.AbstractObserver.onNext (/Users/jhummel/github/slack-poker-bot/node_modules/rx/dist/rx.js:1710:35)
Issue seems to occur on the first game with a new player who hasn't had a DM with the bot before. Once the game crashes with the new player and is restarted, it works next time.
confirmed i have the same
Deployed to heroku. On first match (and every subsequent match), app crashed before game begun.