Giter VIP home page Giter VIP logo

reminder-bot's Introduction

Reminder Bot

透過 Telegram Bot 創建提醒事項

How to Use

  • 列出所有提醒: /my_reminders
  • 新增提醒: /add_reminder 2-26(可省略) 11:20 提醒文本
  • 新增每月提醒: /add_reminder_month 日 (數字) 11:20 提醒文本

Deploy

1. Build

你可以選擇在 Releases 下載對應架構的二進制版本

git clone https://github.com/ArsFy/reminder-bot.git
cd reminder-bot
go mod tidy
go build .

得到二進制可執行檔 reminder-bot

2. Get BotToken

  1. 創建 Telegram Bot: @BotFather
  2. 配置 Token,你可以透過下面 2 種方式之一進行配置
    • Env (環境變數): 設定環境變數名稱 BOT_TOKEN
    • Config (配置檔案): 在運行目錄下創建配置檔 ./token.conf,內容為 Bot Token
  3. *(可選) 使用 Env 設定時區
    • 設定環境變數名稱 TIMEZONE:
    • UTC+8: 8, UTC-10: -10

3. Run

./reminder-bot

Use Koyeb

Koyeb 支援託管 Golang 應用程式,點擊 Button 快速部署


使用 Linux Service

reminder-bot's People

Contributors

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