summaryrefslogtreecommitdiff
path: root/README.nfo
blob: 3a78f06950a3f42168170711530daca9080ac2a1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
┌──────────────────────────────────────────────────────────────┐
│  D A I L Y   P O E M                       [ KRZ ]   krz.sh  │
└──────────────────────────────────────────────────────────────┘

WHAT
  python program. requests a random poem from the poetrydb api and
  emails it to a configured list of addresses.

REQUIRES
  python, and a way to send mail (e.g. mailutils on debian).

RUN
      git clone <REPO_URL>
      cd daily-poem
      pip install -r requirements.txt

  edit main.py and set:
  - sender_email: the from address
  - recipient_emails: a list of to addresses
  - smtp_server: smtp host, defaults to localhost

  then:

      python main.py

┌──────────────────────────────────────────────────────────────┐
│  krz.sh                                                      │
└──────────────────────────────────────────────────────────────┘