Permalink
Browse files

Updated readme.md

  • Loading branch information...
1 parent c54911d commit 085c73cb00b18ffa97fca7e2cbf5ce4d2ef93ef5 @primaryobjects committed Mar 16, 2016
Showing with 10 additions and 10 deletions.
  1. +9 −9 horoscope.js
  2. +1 −1 readme.md
View
@@ -8,17 +8,17 @@ horoscope.dictionary = {"signs":['aries','taurus','gemini','cancer','leo','virgo
horoscope.intent('predict', {
'slots': {'SIGN':'LITERAL'},
'utterances': [ 'for {signs|SIGN}',
- '{signs|SIGN}' ]
+ '{signs|SIGN}' ]
},
function(req, res) {
- var sign = req.get('SIGN');
- if (horoscope.dictionary['signs'].indexOf(sign.toLowerCase()) != -1) {
- res.say('Things are looking up today for ' + req.get('SIGN') + '.');
- }
- else {
- res.say("I'm not familiar with that zodiac sign.");
- return true;
- }
+ var sign = req.get('SIGN');
+ if (horoscope.dictionary['signs'].indexOf(sign.toLowerCase()) != -1) {
+ res.say('Things are looking up today for ' + req.get('SIGN') + '.');
+ }
+ else {
+ res.say("I'm not familiar with that zodiac sign.");
+ return true;
+ }
}
);
View
@@ -30,7 +30,7 @@ Orange.
Orange you glad I didn't say banana?
```
-In this example, the user accesses three different skills, [hello](), [funny](), and [horoscope]().
+In this example, the user accesses three different skills, [hello](https://github.com/primaryobjects/chatskills/blob/master/test.js), [funny](https://github.com/primaryobjects/chatskills/blob/master/funny.js), and [horoscope](https://github.com/primaryobjects/chatskills/blob/master/horoscope.js).
## Usage

0 comments on commit 085c73c

Please sign in to comment.