From 41fcc0fa1dd7c54fc82dc9c3444acf082cb224b9 Mon Sep 17 00:00:00 2001 From: Ryan Harg Date: Tue, 13 Feb 2024 19:18:50 +0100 Subject: [PATCH] Add startup logo --- app/src/main/kotlin/de/rpr/githubreleases/App.kt | 9 +++++++++ app/src/main/resources/logo.txt | 5 +++++ 2 files changed, 14 insertions(+) create mode 100644 app/src/main/resources/logo.txt diff --git a/app/src/main/kotlin/de/rpr/githubreleases/App.kt b/app/src/main/kotlin/de/rpr/githubreleases/App.kt index 1844a06..3fa1abd 100644 --- a/app/src/main/kotlin/de/rpr/githubreleases/App.kt +++ b/app/src/main/kotlin/de/rpr/githubreleases/App.kt @@ -9,6 +9,11 @@ import java.util.concurrent.Executors import java.util.concurrent.TimeUnit fun main() { + App::class.java.classLoader.getResource("logo.txt")?.readText()!!.split("\n") + .forEach { + log(it) + } + log("github-release-bot starting up") val config = Config() val mastodonClientFactory = MastodonClientFactory() val publishers = Publishers(config, mastodonClientFactory) @@ -24,6 +29,10 @@ class App( private val publishers: Publishers ) { + init { + log(config.toString()) + } + fun schedule() { log("Scheduling app...") val executor = Executors.newSingleThreadScheduledExecutor() diff --git a/app/src/main/resources/logo.txt b/app/src/main/resources/logo.txt new file mode 100644 index 0000000..259590e --- /dev/null +++ b/app/src/main/resources/logo.txt @@ -0,0 +1,5 @@ + _ _ _ _ _ _ _ + ___ <_> _| |_ | |_ _ _ | |_ ___ _ _ ___ | | ___ ___ ___ ___ ___ | |_ ___ _| |_ +/ . || | | | | . || | || . \|___|| '_>/ ._>| |/ ._><_> |<_-|___|| . \/ . \ | | +\_. ||_| |_| |_|_|`___||___/ |_| \___.|_|\___.<___|/__/\___. |___/\___/ |_| +<___' \ No newline at end of file