Libraryless. Click here for Pure Java version (1040L/7K/23K).
!752 answer { if "channel name" ret structure(getChannelName()); if (eq(getChannelName(), "devchannel, #talkingbots")) { S ts = getSlackTS(); int i = ts.indexOf('.'); if (i >= 0) ts = substring(ts, i+1); // shorter slack timestamp S theoryName = "tb." + getUserName() + "." + ts; addTheory(theoryName, s); } } static void addTheory(S name, S text) { print("addTheory => " + callOpt(getBot("#1002762"), "saveTheory", name, text, true)); }
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