przypominajka

command module
v0.0.0-...-bad60c6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2023 License: MIT Imports: 9 Imported by: 0

README

przypominajka

przypominajka runs a Telegram bot to send notifications about birthdays, namedays, and anniversaries.

Note: reminders are written in Polish. If you want to customize them, then modify formats.go.

Installation

Run make to compile przypominajka. Run make install to install przypominajka and completions to /usr/local/. Clean up with make clean and make uninstall, respectively.

To override /usr/local/ PREFIX variable use make -e PREFIX=/foo/bar/baz/.

Usage

przypominajka - a Telegram bot for sending event reminders

Description:
  przypominajka reads a YAML file with events and sends reminders about them.
  The reminders are sent out on the day of the event between 08:30 and 09:29
  system time (exact time depends on serve command startup time).

  Reminders are written in Polish.

Example events.yaml:
  january:
    5:
      - name: "John"
        type: "birthday"
      - name: "Jane"
        surname: "Doe"
        type: "nameday"
  april:
    17:
      - names: ["John", "Jane"]
        surname: "Doe"
        type: "wedding anniversary"

Notes:
  - Name and names are mutually exclusive.
  - Names, if present, must have two elements.
  - Surname is optional.
  - Type has to be one of: birthday, nameday, wedding anniversary.

Usage:
  przypominajka [command]

Available Commands:
  bot         Start Telegram bot to serve events and listen for updates
  help        Help about any command
  list        List all events
  next        Find the next day with events and list them

Flags:
      --events string   YAML file defining events (default "events.yaml")
  -h, --help            help for przypominajka
  -v, --version         version for przypominajka

Use "przypominajka [command] --help" for more information about a command.
Bot
Start Telegram bot to serve events and listen for updates

Usage:
  przypominajka bot [flags]

Flags:
      --chat-id int    Telegram chat ID
  -h, --help           help for bot
      --token string   Telegram bot token

Global Flags:
      --events string   YAML file defining events (default "events.yaml")
List
List all events

Usage:
  przypominajka list [flags]

Flags:
  -h, --help   help for list

Global Flags:
      --events string   YAML file defining events (default "events.yaml")
Next
Find the next day with events and list them

Usage:
  przypominajka next [flags]

Flags:
  -h, --help   help for next

Global Flags:
      --events string   YAML file defining events (default "events.yaml")

Bot Setup

Define the following commands for the bot:

next - Find the next day with events and list them
Polish
next - Znajdź najbliższy dzień z wydarzeniami i wypisz te wydarzenia

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL