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

15
LINES

< > BotCompany Repo | #1002367 // news bot

JavaX source code - run with: x30.jar

!752

p{
  makeBot("news bot");
}

answer{
  if(matchStart("add news *")){
    S new = s.replace("add news ", "");
    if(getUserName() == "stefanreich" || getUserName() == "bgrgndz"){
      //Add to news section
      ret new + " added to news section.";
    }
  }
}

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: 668 / 609
Referenced in: #3000202 - Answer for stefanreich (>> T conversion bot)
#3000238 - Answer for stefanreich (>> t power bot)
#3000382 - Answer for ferdie (>> t = 1, f = 0)