Code Monkey home page Code Monkey logo

gamer_autosignin's Introduction

巴哈姆特自動簽到

登入程式碼參考 XinBow99/BAHA_POSTER_Python

Linux排程

建議不要再00:00的時候執行,避免網路延遲導致無法簽到

自動回答問題是透過blackXblue小屋的答案回答,

所以排程建議設在00:10之後

10 0 * * * python3 <your path>/main.py

抽勇者福利社(廣告)

Service

[Unit]
Description=巴哈自動抽獎

[Service]
User = <ssh使用者帳號>
WorkingDirectory = <路徑>
ExecStart = /usr/bin/python3 <lottery.py的路徑>

Timer

[Unit]
Description=巴哈自動抽獎計時器

[Timer]
Unit=lottery.service
OnCalendar = *-*-* 00:10:00
OnCalendar = *-*-* 12:10:00

[Install]
WantedBy= multi-user.target

已加入的功能

自動簽到 2019-11-14

自動回答動畫瘋的問題 2020-11-24 新增

自動公會簽到 2020-12-06 新增

自動抽勇者福利社的獎品(廣告) 2021-01-22 新增

config檔設定

將config_default.json重新命名為config.json 使用記事本等工具打開,並填入相關的資料

Buster插件API申請

  1. wit.ai
  2. 點New App,並填入相關資料
  3. 進到申請的APP,進入設定
  4. 將Server Access Token填入config.json的Buster_Api

待加入的功能

自動回答勇者福利社的問題

gamer_autosignin's People

Contributors

kirbyloco avatar npes87184 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

gamer_autosignin's Issues

請問一下這裡的福利社自動抽獎還可以正常運作嗎?

INFO:root:正在初始化
WARNING:root:Can not find chromedriver for currently installed chrome version.
INFO:root:等待Chrome初始化完成
INFO:httpx:HTTP Request: POST https://api.gamer.com.tw/mobile_app/user/v3/do_login.php "HTTP/1.1 200 OK"
INFO:root:登入成功!
INFO:root:您好:XXX
INFO:httpx:HTTP Request: GET https://fuli.gamer.com.tw/shop.php "HTTP/1.1 403 Forbidden"
ERROR:root:No matches found for lottery_page pattern

我的只會出現這個

登入功能

不好意思,我想部署自動登入的程式碼至google cloud platform的服務Cloud Functions,但是不知道為什麼在google平台上測試函式,都發生錯誤,感謝耀風。

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.