Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

30
LINES

< > BotCompany Repo | #1002952 // Simple Point Bot (UNUSED)

JavaX source code [tags: use-pretranspiled] - run with: x30.jar

Transpiled version (1654L) is out of date.

!752

static BigInteger points;

p {
  load("points");
}

answer {
  if (match("plus one", s) || match("good", s) || match("nice", s)
    || match("nice one", s)
    || match("gut", s) || match("jawohl", s)) {
    plusPoint();
    ret "OK";
  }
  
  if (match("how many points you got", s)
    || match("wie viele punkte", s))
    ret str(points);
}

static void plusPoint() {
  points = points.add(bigint(1));
  log("+1");
  save("points");
}

static void log(S s) {
  print(s);
}

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: #1002952
Snippet name: Simple Point Bot (UNUSED)
Eternal ID of this version: #1002952/1
Text MD5: 71e564637a6d8908d3ec296c51faad3a
Author: stefan
Category: javax
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-04-10 18:38:58
Source code size: 510 bytes / 30 lines
Pitched / IR pitched: No / No
Views / Downloads: 447 / 483
Referenced in: [show references]