add info command

This commit is contained in:
Wieland Schöbl
2020-08-14 01:58:20 +02:00
parent d6a3691756
commit a8babb52ba
5 changed files with 24 additions and 18 deletions

View File

@@ -85,7 +85,7 @@ object Admin {
)
}
fun ready() {
fun info() {
sendDevMessage(
EmbedBuilder()
.setTitle("Now watching for new Hytale Blogposts every ${updateMs / 1000}s")

View File

@@ -51,6 +51,9 @@ class Cli : ListenerAdapter() {
Admin.warning("Unknown Channel ID")
}
}
"info" -> {
Admin.info()
}
}
} catch (e: ArrayIndexOutOfBoundsException) {
// noop

View File

@@ -20,7 +20,7 @@ fun main() {
Channels.jda = builder
Admin.jda = builder
Admin.ready()
Admin.info()
Runtime.getRuntime().addShutdownHook(object : Thread() {
override fun run() {