static BigInteger points = bigint(0); static void loadPointBot() { load("points"); } static S answerPointBot(S s) { if (match("plus one", s) || match("good", s) || match("nice", s) || match("nice one", s) || match_dropping("gut", "sehr", s) || match("jawohl", s) || match("ganz recht", s)) { plusPoint(); ret "OK"; } if (match_dropping("how many points", "did you get got again and", s) || match_dropping("wie viele punkte", "hast du", s) || match_dropping("wieviele punkte", "hast du", s)) ret str(points); null; } static void plusPoint() { points = points.add(bigint(1)); log("PointBot", "+1"); save("points"); }
Began life as a copy of #1002952
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1002953 |
| Snippet name: | Simple Point Bot (include) |
| Eternal ID of this version: | #1002953/1 |
| Text MD5: | c98277da77baccc9fe9164a341bc2cdd |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-04-11 00:36:38 |
| Source code size: | 701 bytes / 28 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 914 / 1142 |
| Referenced in: | [show references] |