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

17
LINES

< > BotCompany Repo | #1002506 // News Bot (developing)

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

Libraryless. Click here for Pure Java version (1468L/9K/31K).

1  
!752
2  
3  
static S news;
4  
5  
p {
6  
  load("news");
7  
}
8  
9  
answer {
10  
  if (matchStart("have you heard the news", s, m)) {
11  
    news = m.rest().trim();
12  
    save("news");
13  
    ret "Cool! I will tell everyone!";
14  
  }
15  
16  
  if "news" ret news;
17  
}

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: #1002506
Snippet name: News Bot (developing)
Eternal ID of this version: #1002506/1
Text MD5: fc65a5e179f6060d546579ff67d42a9c
Transpilation MD5: e9fe7f33b1c6cdbd9dac2eeffbb715e9
Author: stefan
Category:
Type: JavaX source code
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-01-28 01:24:46
Source code size: 236 bytes / 17 lines
Pitched / IR pitched: No / No
Views / Downloads: 650 / 1393
Referenced in: [show references]