wip: config reloading

This commit is contained in:
kageru 2019-07-14 17:27:43 +02:00
parent b0d3475469
commit 5d3a519036
Signed by: kageru
GPG Key ID: 8282A2BEA4ADA3D2

@ -0,0 +1,16 @@
package moe.kageru.kagebot.features
import org.javacord.api.event.message.MessageCreateEvent
class SetConfigFeature : MessageFeature() {
override fun handleInternal(message: MessageCreateEvent) {
if (message.messageAttachments.size != 1) {
message.channel.sendMessage("Error: please attach the new config to your message.")
return
}
message.messageAttachments[0].let { newConfig ->
newConfig.url
}
}
}