wip: config reloading
This commit is contained in:
parent
b0d3475469
commit
5d3a519036
@ -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
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user