Giter Club home page Giter Club logo

xin_bot's Introduction

xin_bot

Powered by Wechaty
基于wechaty社区的python-wechaty开发的一款娱乐性质的微信机器人。

主要功能

  • B站视频分享链接自动解析功能
  • 抖音视频分享链接自动解析功能
  • 网易云热评功能
  • 微博热搜功能
  • 摸鱼图

功能演示

B站视频分享链接自动解析

被动技能,无命令。 当用户发送的聊天信息中,包含B站视频链接时,机器人将自动解析视频各种信息,并发送视频消息。支持BV,av,b23.tv的链接。方便微信群内分享视频,可以快速了解到分享的内容 B站链接解析

抖音分享链接自动解析

被动技能,无命令。 由于微信屏蔽抖音链接,每次分享的时候,都需要自己下载再上传视频,比较麻烦,所以做了这个功能,方便微信群内大家分享视频。此功能自动检测含有 “https://v.douyin.com” 的聊天信息,然后解析视频信息,并自动下载上传视无水印视频。下次再分享抖音视频的时候,直接选择【复制链接】,发送链接即可。 image

网易云热评

命令:到点了 | 网易云 | 我好难过
收到用户命令时,将随机发送网易云音乐的歌曲热评一条。
网抑云

微博热搜

命令:微博 | 微博 | 微博热搜
收到用户命令时,将发送此刻微博热搜榜前15。
微博热搜

摸鱼图

命令:摸鱼 收到用户命令时,将发送一张摸鱼图。
image

linux部署方法

本机器人基于python-wechaty的pad-local协议,采用插件的方式组织。

1、python-wechaty的安装

详见python-wechaty官网文档。传送门python-wechaty文档

2、安装xin_bot

git clone https://github.com/xin0501/xin_bot.git

3、配置pad-local协议

编辑xin_bot.py文件中,相关部分。

os.environ['TOKEN'] = "uuid"   # wechaty-puppet-padlocal中使用的uuid
os.environ['WECHATY_PUPPET_SERVICE_ENDPOINT'] = "ip:port"  # wechaty-puppet-padlocal中设置的ip和端口

启动方法

  • 运行shell目录下的pad_env.sh,启动启动Padlocal网关服务
./shell/pad_env.sh
  • 启动xin_bot机器人
python xin_bot.py

首次启动时,使用手机微信,扫描二维码登录,后续即可自动登录。

xin_bot's People

Contributors

xin0501 avatar

Stargazers

zhaofan avatar dgo2dance avatar 毛天 avatar helloc avatar zhanghao avatar neowalter avatar  avatar  avatar 莫多 avatar Leo_chen avatar bigbrother666 avatar

Watchers

 avatar

Forkers

newrain7803

xin_bot's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.