hellostealth / stealth

An open source Ruby framework for text and voice chatbots. 🤖

Home Page:https://hellostealth.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

uninitialized constant BotRecord (NameError)

b4thestorm opened this issue · comments

Describe the bug
Can not run stealth console in terminal.

To Reproduce
Steps to reproduce the behavior:

  1. open new terminal tab while in stealth generated app, invoke stealth console

Expected behavior
I expect after invoking stealth console in the terminal. I expect that a console prompt
for stealth will show.

Screenshots
screen shot 2018-06-03 at 5 43 19 pm

Instead of a prompt, there is a stack trace that says that BotRecord is uninitialized.
However, there is a BotRecord file in the Bot/Models folder and my stealth generated flow named: Appointment Inherits from it.

Desktop (please complete the following information):

  • OS: OS Mac Os 10.9.5
  • Browser: Chrome 67.0.3396

Additional context
Add any other context about the problem here.

This is due to your model beginning with the letter A being loaded before BotRecord. Will fix in 1.0.2. Thanks for reporting!

Fixed in 1.0.2.