input = input:lower() input = input:gsub('\\?$', '') if input == 'are you on' or input == 'are you off' or input == 'are you on or off' or input == 'is the computer on' or input == 'is the computer off' or input == 'is the computer on or off' or input == 'on or off' or input == 'status' or input == '!status' then return 'ARE YOU ON' 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: | 921 / 351 |
Referenced in: | [show references] |