1 | !752 |
2 | |
3 | p{
|
4 | makeBot("news bot");
|
5 | } |
6 | |
7 | answer{
|
8 | if(matchStart("add news *")){
|
9 | S new = s.replace("add news ", "");
|
10 | if(getUserName() == "stefanreich" || getUserName() == "bgrgndz"){
|
11 | //Add to news section |
12 | ret new + " added to news section."; |
13 | } |
14 | } |
15 | } |
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: | #1002367 |
| Snippet name: | news bot |
| Eternal ID of this version: | #1002367/1 |
| Text MD5: | 1146b3a8ee69fe91d3aa7ca7b020a215 |
| Author: | bgrgndz |
| Category: | |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2016-01-09 21:12:41 |
| Source code size: | 281 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 1067 / 1018 |
| Referenced in: | [show references] |