anniversary

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	TEMPLATE = "今日は%sから%d%sだよ!"
)

Functions

func MakeCheckMessage

func MakeCheckMessage(a *table.Anniversary, now time.Time) (string, bool, error)

Types

type AnniversaryManager

type AnniversaryManager struct {
	Anniversaries []table.Anniversary
	Bot           *linebot.LineBot
}

func New

func New() (*AnniversaryManager, error)

func (*AnniversaryManager) RandomMsg

func (am *AnniversaryManager) RandomMsg() (string, error)

func (*AnniversaryManager) Run

func (am *AnniversaryManager) Run() error

Jump to

Keyboard shortcuts

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