Giter Club home page Giter Club logo

node-douyu-email-notification's Introduction

斗鱼tv开播提醒(邮件通知)

Node.js小脚本,实现每10秒刷新斗鱼tv房间信息,若监听的主播开播,则发送 开播提醒邮件指定配置邮箱

注意: Node.js 版本需要支持 async/await 特性,最好8.0以上

提示: 配合 微信中的功能 :QQ邮箱提醒 效果更佳!!!

例子

proto

配置

需要自己配置 config/config.js 文件:

  • senderEmail : 发送方的邮箱帐号
  • transporter.auth.pass : 发送方的邮箱授权码(非邮箱登录密码!!!)
  • transporter.host : 发送方的邮箱SMTP域名(qq邮箱: smtp.qq.com , 163邮箱: smtp.163.com )
  • receiverEmail : 接收方的邮箱帐号
  • douyu.roomId : 监听的斗鱼房间列表(房间号或别名)
  • delayTime : 延迟时间(默认每10秒刷新一次房间信息)

若想修改邮件 标题/内容

暂时修改app.js 下面的:

const mailOptions = Object.assign(config.emailDetail, { 
  subject: roomInfo.owner_name, // 邮箱标题
  text: roomInfo.room_name + roomInfo.start_time // 邮箱内容
})

运行

  1. git clone https://github.com/op8278/node-douyu-email-notification.git
  2. cd node-douyu-email-notification
  3. npm install
  4. node app.js

node-douyu-email-notification's People

Contributors

op8278 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.