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

14
LINES

< > BotCompany Repo | #1010825 // Post Google Image To Stefan's Chat

JavaX module [tags: use-pretranspiled]

Download Jar. Libraryless. Click here for Pure Java version (4858L/33K/108K).

1  
!7
2  
3  
p {
4  
  botIfMain();
5  
}
6  
7  
answer {
8  
  if (startsWith(s, "!image ", m)) {
9  
    S x = trim(m.rest());
10  
    print("Googling " + x); 
11  
    BufferedImage img = quickVisualize(x);
12  
    ret "[IMAGE] " + uploadJPEGToImageServer(img, x);
13  
  }
14  
}

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: #1010825
Snippet name: Post Google Image To Stefan's Chat
Eternal ID of this version: #1010825/3
Text MD5: c96f330c8f7d88110b8f04e76e06b53f
Transpilation MD5: 0a6a073fb007e1fd1d0ff3cae1b9c30c
Author: stefan
Category: javax / chat
Type: JavaX module
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-10-04 01:03:14
Source code size: 248 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 511 / 2141
Version history: 2 change(s)
Referenced in: [show references]