Comments (1)
Hi @luizcarvalho, you should be able to do all of this via the replies themselves.
Just make sure you add the .erb
extension to your reply file. So reply.yml
should be named reply.yml.erb
. It can then contain Ruby code:
<% if current_message.message == "Sometimes" %>
- reply_type: delay
duration: <%= SHORT_DELAY %>
- reply_type: text
text: "Sometimes"
<% else %>
- reply_type: delay
duration: <%= SHORT_DELAY %>
- reply_type: text
text: "Always"
<% end %>
from stealth.
Related Issues (20)
- Run CircleCI tests on Ruby 2.7
- Messages that are alpha ordinals should take precedence
- Add options to flow states
- Add support for "any" message in handle_message()
- Add NLP threshold setting for intent and entity detection
- Configurable expiration time for CaltchAll max fails attempts
- Support alpha ordinals with punctuation
- Error to connect to database HOT 1
- Stealth Twilio Integration HOT 1
- Add support for Array types in handle_message
- Experiment moving test suite to Github Actions HOT 1
- Add test coverage for TruffleRuby HOT 1
- Upgrade to Sinatra 2.1
- Upgrade listen gem to 3.3.x
- Configuration in initialiser ignored HOT 4
- Integration api instagram HOT 1
- Is it possible to mount a Stealth bot inside an existent Rails app? HOT 2
- `Zeitwerk::SetupRequired` for Zeitwerk 2.6.6
- Compatibility with RSpec-Rails
- Send additional context to NLP drivers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stealth.