-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using object macro within topic #57
Comments
The So it's probably effectively doing Instead you'd probably want to set a user variable; before going into the topic, when you do have the right
Also: it's good practice to always include at least one |
As per your suggestion I tried to modify the code and it still isn't working for me
|
Hi, First, don't mix the topic declaration inside the middle of the response like that. I think it would probably confuse the parser, which reads the source code line-by-line and tries to relate the current line to the most recently seen
I think the syntax here looks wrong.
These issues aside, what do you want the bot to do? As you wrote it, it seems like the workflow would be like:
And now the user is in the "load" topic, so on their next message to the bot:
Is it intentional to call the macro two times in response to two user messages? Or are you trying to chain these in sequence so that one user message results in both triggers being activated? If it's the latter and you want both triggers to activate in sequence for one message, maybe the inline redirect Also, if you ever wonder what the bot is doing with your code, turn on debug mode and watch the terminal. When it goes and tests the |
I am trying to use the object macro within topic and it is failing. However the code snippet before topic is running
Would you please tell me where the error lies
Below is the code snippet of it
The text was updated successfully, but these errors were encountered: