• Stars
    star
    713
  • Rank 63,068 (Top 2 %)
  • Language
    Python
  • Created over 7 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

微信群机器人

目前支持的功能:

  • 响应/help,显示帮助信息。
  • 在两个群中间转发文本,图片,自定义动画表情,链接。微信群有500人的容量限制,一个消息转发机器人可以通过把几个群接起来相互转发消息来突破这样的限制。
  • 用正则表达式来自定义回复。
  • 响应/tagcloud,生成整个群的标签云,或者响应/mytag,生成某个用户的标签云。
  • 响应/activity,生成群的活跃度时间图,以及活跃用户饼图。
  • 自动排队。如果群里出现了二传,自动三传。
  • 斗图。/doutu进入斗图模式,用深度学习确定回复什么图,进行斗图。
  • 兼容Windows和Linux。如果在Windows下运行,请更改字体路径。

目前不支持的功能:

  • 转发表情商城中的表情(即使表情是免费的)
  • 转发红包(想啥呢你)
  • 多于两个群的转发(但更改应该很简单)

部署

  • 运行deploy.sh。或者手工安装python,mongodb,然后安装requirements.txt中的库。
  • 依赖于itchat, mongodb.

运行

  • 这个小工具不是针对最终用户的,所以现在需要改code(main.py)来设置一些参数,尤其是群名,黑白名单等等。
  • python3 -u main.py。会弹出一个二维码扫码登录。
  • 如果在Linux VPS上运行,ssh进去的时候记得加上X转发,这样才能看到二维码。如果不用X转发的话也可以手工下载文件或者改用命令行二维码。

已知问题

  • 如果启动时候说无法找到群,请在群里说句话。这是微信接口的限制所致。
  • 如果启动的时候说连接27017端口connection refused,这是因为你没有安装mongodb。安装mongodb可以解决这个问题。
  • 如果出来的标签云里面都是框框,这是字体没有配置好所致。请去main.py里面更改字体路径。
  • 斗图的功能需要一些深度学习的基础知识和Caffe的相关经验。目前不提供支持。但DoutuRobot文件夹下面有一些文档可以参考。

More Repositories

1

Danbooru2018AnimeCharacterRecognitionDataset

An open source dataset based on Danbooru2018 dataset to do anime character recognition, with 1M images and 70k characters.
197
star
2

AnimeHeadDetector

An object detector for character heads in animes, based on Yolo V3.
Python
96
star
3

AppleJPEGGainMap

Reference implementation to embed a gain map to an SDR photo so it renders as HDR on iPhones and Macs.
Swift
38
star
4

DebianInit

Shell
36
star
5

IFTTTDelay

JavaScript
34
star
6

VoiceNoteTaker

Python
26
star
7

alexa-esp32-cam

An ESP32-cam Arduino implementation that responds to
C
16
star
8

blog

CSS
16
star
9

ZhihuSocialNetwork

Python
15
star
10

EOSVRConverter

A small utility to allow Canon EOS VR Utility to indirectly process RAW files, and turn on horizontal correction by default.
Python
14
star
11

BoW

A basic implementation of the Bag of (Visual) Words approach (BoW) for image search.
C
14
star
12

ZWOIPCam

Use ZWO astronomy camera as an IP camera.
Python
9
star
13

learn-expressjs

A experimental repo for leaning express.js
Objective-C
8
star
14

ZhihuFemaleAnswer

JavaScript
7
star
15

PixInsightMonoScript

JavaScript
5
star
16

AmazonPriceMonitor

JavaScript
4
star
17

RandomForest

C++
4
star
18

cppsugar

An library mainly with syntax sugar for cpp
C++
4
star
19

.dotfiles

Vim Script
3
star
20

RaspberryPiAirQuality

Python
3
star
21

caffeWindows

C++
1
star
22

rss2page

This is a utility to connect rss feed with some certain facebook pages.
PHP
1
star
23

bitcoinDepthPrice

Python
1
star
24

EfficiencyComparison

A comparison on efficiency among several languages for a toy example in scientific computing.
C#
1
star
25

AdHocSimulator

C#
1
star
26

FSharpDemo

F#
1
star
27

ecDNAClusterScore

Python
1
star