Giter VIP home page Giter VIP logo

renren-say's Introduction

renren-say

Renren dot com status robot

人人网状态机器人

安装

  1. 下载代码
  2. 将config.ini.sample重命名为config.ini
  3. 修改config.ini中的email和password修改成人人网账户的邮箱和密码

配置运行模式

修改config.ini中的runtime段里的mode变量值:

  • 指定插件模式:插件名(不含Plugin),每次运行将运行指定的插件
  • 随机模式:random,每次使用随机算法选出一个插件运行

默认使用随机模式运行,增加趣味性

使用方法

  • 命令行下运行renren-say.py
  • 也可将此命令使用cron定时运行
    • 将cron.sh.sample重命名为cron.sh
    • 为cron.sh添加可执行权限
    • 将cron.sh下的cd命令目录更改为你的renren-say路径

插件开发

  • 给插件起一个名字,比如xxx
  • 在plugins目录下新建一个文件xxxPlugin.py
  • 文件内容为一个类,类名和文件名相同
  • xxxPlugin类中必须有__init__和say两个方法
  • 细节请参考目录中的SimplePlugins.py和YuebaoPlugin.py两个文件

TODO

  • 开发更多有意思的插件,欢迎大家提交PR
  • 分离随机数产生方法,做到更智能

renren-say's People

Contributors

richard-ma avatar

Watchers

杜超 avatar

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.