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

11
LINES

< > BotCompany Repo | #1003109 // simpleChatPresence

JavaX fragment (include)

static volatile L<S> simpleChatPresence_names;

static void simpleChatPresence(S... names) {
  simpleChatPresence_names = asList(names);
  O chat = simpleChatBot();
  if (chat == null) {
    if (nempty(names))
      loadPage("http://ai1.lol/" + simpleChatID() + "/raw?robo=1&user=" + urlencode(first(names))); // TODO: multiple names, repeat sending presence
  } else
    call(chat, "setPermanentPresence", programID(), asList(names));
}

Author comment

Began life as a copy of #1003094

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: #1003109
Snippet name: simpleChatPresence
Eternal ID of this version: #1003109/1
Text MD5: a6414c602fb68c0a67ccef31d3dcac33
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2016-06-06 00:52:32
Source code size: 447 bytes / 11 lines
Pitched / IR pitched: No / No
Views / Downloads: 745 / 718
Referenced in: [show references]