Skip to content

台大教職員/計畫助理 到勤差假系統 - 帳號簽到退自動打卡程式 (NTU Faculty/Staff Auto Attendance System - Automatic Clock-in/Clock-out Program)

Notifications You must be signed in to change notification settings

PoisWu/NTU-PuncherBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NTU-PuncherBot

The PuncherBot, written in Go, helps you to clock-in and clock out automatically.

Overview

PuncherBot:

  • performs auto clock-in and clock-out
  • provides a frendly CLI interface
  • integrates with calendar database to store the dates to clock-in and clock-out
  • integrates with Telegram for real-time notification

Get startted

Prerequisites

Before you start, you need to

wget https://cdn.jsdelivr.net/gh/ruyut/TaiwanCalendar/data/{year}.json

Steps

  1. Install this project
git clone https://github.com/PoisWu/NTU-PuncherBot.git
  1. Buid the source code into binary
go build 
  1. Load the calendar into PuncherBot
./puncherbot load <year>.json
  1. Edit the config.toml to your own credentials
[account]
username = "YOUR USERNAME"
password = "YOUR PASSWORD"

[telegram]
chat_id = "CHATID"
chatbot_token = "CHATBOTTOKEN"
  1. Start the PuncherBot
./puncherbot run --config config.toml

About

台大教職員/計畫助理 到勤差假系統 - 帳號簽到退自動打卡程式 (NTU Faculty/Staff Auto Attendance System - Automatic Clock-in/Clock-out Program)

Resources

Stars

Watchers

Forks

Languages