Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CommandHelp : ListenerAdapter() {
- @SubscribeEvent
- fun CommandHelp(e: MessageReceivedEvent) {
- var cmdHelpMsg = " help - lists all available commands"
- var cmdKInfoMsg = "kamilkime - lists information about Kamil"
- var cmdAvatarMsg = "avatar - shows your avatar"
- var cmdAlkomatMsg = "breathalyser - shows how drunk you are (in promilles)"
- var cmdJavaMsg = "java - links you to some Java tutorials"
- var cmdCheckMsg = "check - shows stats of the Discord server"
- var authorInfo = "Bot author - Superbizons"
- if (e.guild.name == "Kodziarze Kimka") {
- if (e.message.content.startsWith("guard!help")) {
- var message = MessageBuilder()
- .setEmbed(EmbedBuilder()
- .setTitle("Body Guard BOT - Help")
- .setDescription("Komendy Body Guard Bot'a")
- .setColor(Color(15103806))
- .addField("Music:"," In Future",false)
- .addField("Commands:","$cmdHelpMsg \n$cmdKInfoMsg \n$cmdAvatarMsg \n$cmdAlkomatMsg \n$cmdJavaMsg \n$cmdCheckMsg",false)
- .addField("Author:","$authorInfo",false)
- .build())
- .build()
- e.textChannel.sendMessage(message).queue()
- }
- }else {
- if (e.message.content.startsWith("guard!help")) {
- var message = MessageBuilder()
- .setEmbed(EmbedBuilder()
- .setTitle("Body Guard BOT - Help")
- .setDescription("Komendy Body Guard Bot'a")
- .setColor(Color(15103806))
- .addField("Music:"," In Future",false)
- .addField("Commands:","$cmdHelpMsg \n$cmdAvatarMsg \n$cmdAlkomatMsg \n$cmdCheckMsg",false)
- .addField("Author:","$authorInfo",false)
- .build())
- .build()
- e.textChannel.sendMessage(message).queue()
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement