1 | input = input:lower() |
2 | input = input:gsub('\\?$', '')
|
3 | |
4 | if input == 'are you on' or input == 'are you off' or input == 'are you on or off' |
5 | or input == 'is the computer on' or input == 'is the computer off' |
6 | or input == 'is the computer on or off' or input == 'on or off' |
7 | or input == 'status' or input == '!status' then |
8 | return 'ARE YOU ON' |
9 | end |
A recognizer for the ARE YOU ON intention.
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Recognizer | Recognition Result | Visualize | Recalc |
|---|---|---|---|
| #308 | 357 | [visualize] |
| Snippet ID: | #62 |
| Snippet name: | ARE YOU ON recognizer |
| Eternal ID of this version: | #62/1 |
| Text MD5: | 8193b98f5b767215f9165731f4c8dcf8 |
| Author: | stefan |
| Category: | intention recognizer |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2013-12-31 17:06:33 |
| Source code size: | 357 bytes / 9 lines |
| Pitched / IR pitched: | Yes / Yes |
| Views / Downloads: | 1352 / 474 |
| Referenced in: | [show references] |