mirror of
https://github.com/HMCore/Orbot.git
synced 2025-12-12 13:56:18 +00:00
add info command
This commit is contained in:
@@ -85,7 +85,7 @@ object Admin {
|
||||
)
|
||||
}
|
||||
|
||||
fun ready() {
|
||||
fun info() {
|
||||
sendDevMessage(
|
||||
EmbedBuilder()
|
||||
.setTitle("Now watching for new Hytale Blogposts every ${updateMs / 1000}s")
|
||||
|
||||
@@ -51,6 +51,9 @@ class Cli : ListenerAdapter() {
|
||||
Admin.warning("Unknown Channel ID")
|
||||
}
|
||||
}
|
||||
"info" -> {
|
||||
Admin.info()
|
||||
}
|
||||
}
|
||||
} catch (e: ArrayIndexOutOfBoundsException) {
|
||||
// noop
|
||||
|
||||
@@ -20,7 +20,7 @@ fun main() {
|
||||
|
||||
Channels.jda = builder
|
||||
Admin.jda = builder
|
||||
Admin.ready()
|
||||
Admin.info()
|
||||
|
||||
Runtime.getRuntime().addShutdownHook(object : Thread() {
|
||||
override fun run() {
|
||||
|
||||
Reference in New Issue
Block a user