Commit graph

61 commits

Author SHA1 Message Date
Miguel de la Cruz
1747612b86 Adds golangci-lint 2023-07-11 16:43:20 +02:00
Miguel de la Cruz
3335cfe795 Adds a client and tests for the handlers 2023-07-11 16:29:57 +02:00
Miguel de la Cruz
eaca9c1691 Make web server optional and allow to use a random port 2023-07-11 15:47:01 +02:00
Miguel de la Cruz
1cc687395c Adds next birthdays endpoint 2023-07-11 13:27:50 +02:00
Miguel de la Cruz
0bd05b6efe Adds web endpoint 2023-07-11 12:37:56 +02:00
Miguel de la Cruz
045c8760fe Add new tasks to the bot 2023-07-11 12:09:08 +02:00
Miguel de la Cruz
8087e91d69 Fix readme typo 2023-07-11 11:30:29 +02:00
Miguel de la Cruz
7cd86ed429 Remove the ToMap birthday method 2023-07-11 10:21:53 +02:00
Miguel de la Cruz
1918740563 Properly parses the template functions, and adds some tests 2023-07-11 10:10:56 +02:00
Miguel de la Cruz
7dae3def51 Adds the GetYearsOld function to the templates 2023-07-10 23:27:18 +02:00
Miguel de la Cruz
cdd29a7ae8 Move get picture to a utils package so it can be reused 2023-07-10 23:09:25 +02:00
Miguel de la Cruz
5fdf7df7df Adds a test for the birthday filename 2023-07-10 22:44:48 +02:00
Miguel de la Cruz
3c63ff5880 Complete task on readme 2023-07-10 21:31:54 +02:00
Miguel de la Cruz
e2aacc527b Adds pictures to telegram messages 2023-07-10 21:31:09 +02:00
Miguel de la Cruz
ec2cdfdeaa Restructures configuration for birthdays and adds pictures directory 2023-07-10 21:08:05 +02:00
Miguel de la Cruz
c7399eb9da Adds templates to birthday message 2023-07-10 20:46:12 +02:00
Miguel de la Cruz
7a88cf62ac Add the pictures task to the readme 2023-07-10 19:59:34 +02:00
Miguel de la Cruz
e6a59019c5 Reduce logger verbosity 2023-07-10 19:58:55 +02:00
Miguel de la Cruz
f11b9b1d93 Adds logger config 2023-07-10 14:55:47 +02:00
Miguel de la Cruz
e43cb05755 Create the logger only after reading the config 2023-07-10 13:53:25 +02:00
Miguel de la Cruz
b5bd054bbe Move mocks to their own packages 2023-07-10 13:43:59 +02:00
Miguel de la Cruz
15f90c1e19 Create a test to notify from the server, and all necessary structure 2023-07-10 13:39:25 +02:00
Miguel de la Cruz
977e2d993e Adds go mock and generate make target and CI check 2023-07-10 12:29:25 +02:00
Miguel de la Cruz
3b09a7da10 Add initial simple approach to time loop 2023-07-10 10:16:43 +02:00
Miguel de la Cruz
6c14403ff4 Adds server options 2023-07-04 12:48:16 +02:00
Miguel de la Cruz
dee94e838d Adds telegram_notifications sample config 2023-07-04 12:38:24 +02:00
Miguel de la Cruz
d9c1e81976 Tidy gomod 2023-07-04 12:37:11 +02:00
Miguel de la Cruz
9bc9e4f60c Adds initial implementation of the Telegram bot 2023-07-04 12:29:25 +02:00
Miguel de la Cruz
38e78cc02b Update README.md 2023-07-02 08:00:28 +00:00
Miguel de la Cruz
c180bb5cbe Complete notification service interface with notify method 2023-07-01 18:03:15 +02:00
Miguel de la Cruz
8825837e14 Adds telegram notification service and notifications services scaffold 2023-07-01 18:00:48 +02:00
Miguel de la Cruz
12c74a0f74 Adds basic telegram notification config 2023-07-01 17:48:10 +02:00
Miguel de la Cruz
a331a45cff Adds run instructions to the README 2023-07-01 17:33:30 +02:00
Miguel de la Cruz
94df957b02 Add signal listeners to the cmd command 2023-07-01 17:31:09 +02:00
Miguel de la Cruz
e3fcf6adf1 Adds simple workers start/stop methods 2023-07-01 17:23:19 +02:00
Miguel de la Cruz
b90e3afc76 Update go version 2023-06-30 17:23:36 +02:00
Miguel de la Cruz
af389c7a62 Pin dependencies to a nixpkgs commit 2023-06-30 17:23:01 +02:00
Miguel de la Cruz
b6e9d3ebb5 Expand the README to include the CSV file 2023-06-30 11:39:13 +02:00
Miguel de la Cruz
23f8976d19 Create a sample birthday.csv file 2023-06-30 11:38:03 +02:00
Miguel de la Cruz
0b0e91928d Add example config file 2023-06-30 10:42:27 +02:00
Miguel de la Cruz
af92353a89 Add logger to the server 2023-06-30 10:38:29 +02:00
Miguel de la Cruz
acac38d1f6 Add simple server creation 2023-06-30 10:33:25 +02:00
Miguel de la Cruz
c617fe2505 Add birthday filters 2023-06-30 10:10:58 +02:00
Miguel de la Cruz
5812505763 Add pipeline status 2023-06-30 09:59:17 +02:00
Miguel de la Cruz
21413c1a2b Mark roadmap task as done 2023-06-30 09:58:21 +02:00
Miguel de la Cruz
8a857a6dba Go down to 1.19 2023-06-30 09:56:36 +02:00
Miguel de la Cruz
470f135275 Add a check for gomod 2023-06-30 09:54:52 +02:00
Miguel de la Cruz
e9c615197a Add a test for the CSV parser and check errors on the read config 2023-06-30 09:51:34 +02:00
Miguel de la Cruz
ea6ba550b1 Add a test that needs to be implemented 2023-06-30 00:37:56 +02:00
Miguel de la Cruz
71632311b2 Fix CI 2023-06-30 00:33:59 +02:00