Git Product home page Git Product logo

gvalive's Introduction

GvAlive

GoogleVoice 全自动批量保号
通过 GitHub Actions 定期向群内发送短信触发关键词,然后配置各gv号自动回复短信实现全自动保号。

Usage

  1. 注册 GitHub,然后Fork本项目(顺便点个Star)
  2. Groupme官网注册一个账户,并激活主手机号。(建议用谷歌邮箱和对应gv号)
  3. 登录后新建一个群组,群名和介绍都用英文。手机打开 "Voice"或者"环聊Hangouts" App 就能看到这个群组(系统默认会发来一条消息,也可以手动发一条)(群建好后把所有的gv号加进去,就能实现批量给gv号群发短信)
  4. GroupMe Dev建立 bot 机器人。group 选刚建的群名; name 取英文;callback URL 输入https://www.baidu.com,随便填;其他留空。获得 Bot_ID 记下来。
  5. 在你刚新建的 GitHub 项目里面点 Settings(设置)然后点 Secrets(隐私)新建GM_BOT_ID分别对应前面的Bot_ID
  6. 在你刚建的 GitHub 项目里点 Actions 然后点左侧 Autosend 切换,然后点 Run workflow 开始第一次运行。运行成功你应该会收到 bot 的短信。
  7. 设置 Gmail 自动回复 GoogleVoice 短信,可以设定触发关键词为keepGV参考一下

分享一下google app script内容

function autoReplier() {
  let  labelObj = GmailApp.getUserLabelByName('AutoReply');
  for (var i = 0; i < labelObj.getUnreadCount(); i++) {
    let messages = labelObj.getThreads()[i].getMessages();
    for (var j = 0; j < messages.length; j++) {
        if (messages[j].isUnread()) {
          let msg = messages[j].getPlainBody();
          if(msg.indexOf("keepGV") >= 0){
            let sender = messages[j].getFrom();
            MailApp.sendEmail(sender, "Auto Reply", '您的指令已经收到,俺一定坚持到底!');
          }
        }
        messages[j].markRead();
        messages[j].moveToTrash();
    }
  }
}

感谢: https://github.com/jerry-2009/GoogleVoiceProtuct

gvalive's People

Contributors

wj2008 avatar iuiicc 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.