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

11
LINES

< > BotCompany Repo | #1025765 // factStore_cmds

JavaX fragment (include)

sS factStore_cmds(SimpleFactStore factStore, S s, bool allowChanges) {
  if (allowChanges) {
    if "clear facts" { factStore.clear(); ret "OK"; }
  }
  
  if "list facts" {
    ret ai_bracketUsersToDiscordAt(lines(factStore.facts()));
  }
  
  null;
}

download  show line numbers  debug dex  old transpilations   

Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1025765
Snippet name: factStore_cmds
Eternal ID of this version: #1025765/3
Text MD5: d0576340643560acd23cc988ec8b6374
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-10-18 22:06:26
Source code size: 262 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 149 / 176
Version history: 2 change(s)
Referenced in: [show references]