Awesome Open Source
Awesome Open Source

Mojo-Weixin v1.4.6 Build Status API QQ-498880156 IRC LICENSE

PerlMojoliciousPerl5.10+HTTPapi

  • /
  • ///
  • //
  • Windows/Linux/Mac dockerPerl
  • HTTPAPI

| | | |github |
|:-------------------|:--------|:-----------|:------------|:---------------------------- |ShowMsg |100 | |sjdy521 | |IRCShell |99 | |sjdy521 |Linuxirc |Openwx |98 | |sjdy521 |api |Beauty |95 | |sjdy521 | |Translation |93 | |sjdy521 | |KnowledgeBase |2 | |sjdy521 | |AutoVerify |1 | |sjdy521 | |PostQRcode |0 | |sjdy521 | |UploadQRcode |0 | |sjdy521 |url |XiaoiceReply |1 | |sjdy521 | |ShowQRcode |0 | |sjdy521 |win |SmartReply |0 | |sjdy521 |

Perl . Enjoy!

cpanm Mojo::Weixin && perl -MMojo::Weixin -e "Mojo::Weixin->new->load('ShowMsg')->load('SmartReply')->run()"
[16/01/19 23:10:49] [info] ...
[16/01/19 23:10:50] [info] 
[16/01/19 23:10:30] [info] [ /tmp/mojo_weixin_qrcode.jpg ]
[16/01/19 23:11:20] [info] ...
[16/01/19 23:12:09] [info]  [] ...
[16/01/19 23:12:10] [info] ...
[16/01/19 23:12:10] [info] 
[16/01/19 23:13:40] [info] ...
[16/01/19 23:13:40] [info] 
[16/01/19 23:14:41] [info] 
[16/01/19 23:15:42] [info] [  ]
[16/01/19 23:15:42] [info] [ Perl ]
[16/01/19 23:15:42] [info] ...
[16/01/19 23:15:00] [] |Perl : Mojo::Weixin
[16/01/19 23:15:58] [] ->Perl : 

irclinux

    +-------------------+                      +----------------+  
    |  Tencent          |                      | Any IRC Client |
    |  Weixin Server    |                      | wechatirssi  |
    +---v-------------^-+                      +-v------------^-+     
        |             |                          |            |
        | |                          |IRC |
+-- --- |--  - -  --  | - - -   --   -  -   ---  | ---  ----- | --+
|   +---v-------------^--+                  +----v------------^-+ |   
|   |                    <<                   | |
|   |   Weixin  Client   |  Weixin - IRC    |  IRC Server       | |
|   |                    |          |  6667 | |
|   |                    >>                   | | 
|   +--------------------+                  +-------------------+ |
|                                                                 |
|                                               | 
+---  - - - -  -- - --  ----  ------  -------  ------  ---    ----+

IRCShell

Mojo-Weixin

cpanmMojo::Weixin, dockerDocker

  1. perl

    Perlwindows

    Perl5.10.1+5.14+

    Perl Unix/LinuxMac OS XWindows

    Binaries

    Linuxperlperlperlbrew

    Windows 1. StrawberryPerl
    2. ActivePerl
    3. Mojo-StrawberryPerl
    StrawberryPerl
    Mojo-StrawberryPerl
    ActivePerl
    Linux 1. ****
    2. yum/apt
    3.
    4. ActivePerl
    5. DWIM-Perl
    ActivePerl
    DWIM-Perl
    Mac 1. ****
    2. ActivePerl
    ActivePerl

    Mojo-StrawberryPerlStrawberryPerlwindows 32/64

  2. cpanmcpanm

    a cpancpanmroot

     $ cpan -i App::cpanminus
    

    b cpanm

     $ curl -kL http://cpanmin.us | perl - App::cpanminus
    
     
     
     $ curl http://share-10066126.cos.myqcloud.com/cpanm.pl|perl - App::cpanminus
    
  3. *cpanm Mojo::Weixin *

     $ cpanm Mojo::Weixin
    
    
    
    
    
     $ cpanm --mirror http://mirrors.163.com/cpan/ Mojo::Weixin
    
  4. **

    cpanm

    Mojo::Weixin cpancpanm

    IO::Socket::SSL

    IO::Socket::SSL https SSL

    Linux

    Windows Perl

    strawberryperl activeperl Mojo::Weixin

    RedHat/Centos:

     $ yum install -y openssl-devel
    

    Ubuntu:

     $ sudo apt-get install libssl-dev
    

    2 Mojo::Weixin

    rootrootFAQ

    Linux

     $ curl -ks "https://raw.githubusercontent.com/sjdy521/Mojo-Weixin/master/script/check_dependencies.pl"|perl -
    

  1. PerlPerler

    Perlcpan Mojo::Weixin

    demo

  2. Perl/

    (UTF8) perl

     #!/usr/bin/env perl
     use Mojo::Weixin;
     my ($host,$port,$post_api);
     
     $host = "0.0.0.0"; #
     $port = 3000;      #
     #$post_api = 'http://xxxx';  #
     
     my $client = Mojo::Weixin->new(log_level=>"info",http_debug=>0);
     $client->load("ShowMsg");
     $client->load("Openwx",data=>{listen=>[{host=>$host,port=>$port}], post_api=>$post_api});
     $client->run();
    

    xxxx.pl perl http server

     $ perl xxxx.pl
    
    
    
     http://127.0.0.1:3000/openwx/send_friend_message?id=xxxx&content=hello
     
     * About to connect() to 127.0.0.1 port 3000 (#0)
     *   Trying 127.0.0.1...
     * Connected to 127.0.0.1 (127.0.0.1) port 3000 (#0)
     > GET /openwx/send_friend_message?id=xxxxx&content=hello HTTP/1.1
     > User-Agent: curl/7.29.0
     > Host: 127.0.0.1:3000
     > Accept: */*
     > 
     < HTTP/1.1 200 OK
     < Content-Type: application/json;charset=UTF-8
     < Date: Sun, 13 Dec 2015 04:54:38 GMT
     < Content-Length: 52
     < Server: Mojolicious (Perl)
     <
     * Connection #0 to host 127.0.0.1 left intact
     
     {"status":"","id":23910327,"code":0}
    

    OpenwxAPI

    • IRC *

    IRCShell

JavaScript

  • wechaty Wechaty is wechat for bot in Javascript(ES6). It's a Personal Account Robot Framework/Library.
  • wechatircd IRC
  • Weixinbot Nodejs

Python

Java

donate

COPYRIGHT LICENCE

Copyright (C) 2014 by sjdy521

This library is free software; you can redistribute it and/or modify it under MIT License and Anti 996 License


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Perl (36,345
Docker (33,750
Api (21,940
Cli (15,509
Bot (12,018
Chatbot (3,437
Chat (3,234
Wechat (1,858
Irc (940
Weixin (580
Related Projects