Commit graph

19 commits

Author SHA1 Message Date
bd14b3c731 Add support for external sender
All checks were successful
continuous-integration/drone/push Build is passing
This commit allows using an external unix exporter to send the messages
instead of directly sending the messages to Telegram
2023-03-12 14:12:48 +01:00
d9c57f7441 Improve bot messages
All checks were successful
continuous-integration/drone/push Build is passing
Ref #13

This commit uses markdown formatting to improve the messages sent to
the Telegram bot.
2023-02-04 19:07:04 +01:00
51bc7cb3a0 Use logrus to handle logs
All checks were successful
continuous-integration/drone/push Build is passing
This commit adds the logrus module, and improves logs handling for the
entire program. Error logs are better displayed, and the log level can
be set from the configuration file.
2023-02-04 18:15:22 +01:00
93e8bc0f52 Use a tag for the telegram lib 2023-02-04 17:44:38 +01:00
6c6d5c3a79 Add missing architectures to CI file
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 21:17:30 +01:00
81f4b72b8f Fix CI branch names
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 21:09:53 +01:00
0bdf5a8979 Fix CI trigger
All checks were successful
continuous-integration/drone/push Build is passing
2023-02-02 21:06:10 +01:00
9b5f33dece Improve CI
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
Add more tests to the CI, including a docker build test, and add the
generation and publication of a new docker image on master and tags
2023-02-02 20:54:27 +01:00
2abc08d582 Allow asking for the current public IP
All checks were successful
continuous-integration/drone/push Build is passing
Ref #5

This commit adds the /getIP telegram command that allows asking for the
current public IP that the bot has stored.

As it is just a working version and the telegram API is not yet
complete, this command is not yet really tested. I need to provide a
more stable version of my Telegram API beforehand because as of now it's
just a mess really, but this will do for now.
2023-01-29 18:50:43 +01:00
4b6e0b116c Add multi-architecture support
All checks were successful
continuous-integration/drone/push Build is passing
Update the Dockerfile in order to be able to generate containers for
several architectures (amd64 and arm64 for instance) using buildx.
2023-01-29 18:19:54 +01:00
34b3156d64 Add Dockerfile
All checks were successful
continuous-integration/drone/push Build is passing
This commit adds a first working Dockerfile for this program, as well as
instructions on how to use it. This will need more detailing in the
future, but this will do for now.
2023-01-28 15:11:36 +01:00
3a1bb20a1f Add monitoring of the current public IP
All checks were successful
continuous-integration/drone/push Build is passing
Ref #4

This commit adds an active monitoring of the current public IP. If a
change is detected, then a message is sent to the given Telegram
channel. Add a few tests for the main monitoring logic.
2023-01-28 14:29:39 +01:00
a4ca608937 Remove previous test methods
All checks were successful
continuous-integration/drone/push Build is passing
There were a few tests that used to be here only to run a mock pipeline.
Since we now have testable methods, this is not useful anymore and this
commit removes them
2023-01-27 18:01:37 +01:00
3948c8e7b4 Add publig IP getter
Ref #3

This commit uses a GET query to ifconfig.me in order to get the current
public IP. It also modifies the initialization message to send the
current public IP to the Telegram channel instead of a simple message.
2023-01-27 18:01:37 +01:00
54de3b84cd Add link to Telegram
All checks were successful
continuous-integration/drone/push Build is passing
Ref #2

This commit adds a link to a Go Telegram API to send messages to a given
telegram channel provided with a JSON config file. At the moment the
program sends a simple status message to the bot when starting up, but
this allows testing whether the link to Telegram is correctly working.
2023-01-25 20:42:43 +01:00
56f909d229 Add .drone-ci file
All checks were successful
continuous-integration/drone/push Build is passing
Ref #1

Add the configuration file for the CI
2023-01-05 19:04:58 +01:00
bd9bba54ba Create initial Go module
Ref #1

Create an initial Go module with a simple unit test and a makefile. This
can be tested using a CI pipeline, which will ensure that the following
commits don't break anything.
2023-01-05 18:51:53 +01:00
0e1f5f15de Write initial README file 2023-01-05 18:51:39 +01:00
0211a6e4af Initial commit 2023-01-05 09:49:25 +01:00