From f1454af39551fc297901d905a52bc3a257c4ea74 Mon Sep 17 00:00:00 2001 From: limited_dev Date: Thu, 11 May 2023 17:48:29 +0200 Subject: [PATCH] remove: removed potatoExtension Signed-off-by: limited_dev --- README.md | 9 ++-- src/main/kotlin/de/limited_dev/botendo/Bot.kt | 2 - .../extensions/util/PotatoExtension.kt | 42 ------------------- 3 files changed, 4 insertions(+), 49 deletions(-) delete mode 100644 src/main/kotlin/de/limited_dev/botendo/extensions/util/PotatoExtension.kt diff --git a/README.md b/README.md index 4992739..9be1942 100644 --- a/README.md +++ b/README.md @@ -3,11 +3,10 @@ "6th times the charm" ~ me A Discord music bot, written in Kotlin using the kord library. -
- 100% Selfmade - 0% optimized - fuck it, ship it -
+ +[![Latest Release](https://gitlab.com/moonleay/botendo/-/badges/release.svg)](https://gitlab.com/moonleay/botendo/-/releases) +[![pipeline status](https://gitlab.com/moonleay/botendo/badges/master/pipeline.svg)](https://gitlab.com/moonleay/botendo/-/commits/master) +[![coverage report](https://gitlab.com/moonleay/botendo/badges/master/coverage.svg)](https://gitlab.com/moonleay/botendo/-/commits/master) ## Contributors diff --git a/src/main/kotlin/de/limited_dev/botendo/Bot.kt b/src/main/kotlin/de/limited_dev/botendo/Bot.kt index 7a60f2a..1e3ba7a 100644 --- a/src/main/kotlin/de/limited_dev/botendo/Bot.kt +++ b/src/main/kotlin/de/limited_dev/botendo/Bot.kt @@ -24,7 +24,6 @@ import de.limited_dev.botendo.buttons.ButtonManager import de.limited_dev.botendo.data.CredentialManager import de.limited_dev.botendo.extensions.music.* import de.limited_dev.botendo.extensions.util.InfoExtension -import de.limited_dev.botendo.extensions.util.PotatoExtension import de.limited_dev.botendo.util.Logger import de.limited_dev.botendo.util.MessageUtil import dev.kord.common.Color @@ -64,7 +63,6 @@ object Bot { add(::SkipExtension) add(::NowPlayingExtension) add(::QueueExtension) - add(::PotatoExtension) } this.presence { diff --git a/src/main/kotlin/de/limited_dev/botendo/extensions/util/PotatoExtension.kt b/src/main/kotlin/de/limited_dev/botendo/extensions/util/PotatoExtension.kt deleted file mode 100644 index fa9ae0e..0000000 --- a/src/main/kotlin/de/limited_dev/botendo/extensions/util/PotatoExtension.kt +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Botendo - * Copyright (C) 2023 moonleay - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - * - */ - -package de.limited_dev.botendo.extensions.util - -import com.kotlindiscord.kord.extensions.extensions.Extension -import com.kotlindiscord.kord.extensions.extensions.publicSlashCommand -import de.limited_dev.botendo.util.MessageUtil -import dev.kord.common.Color - -class PotatoExtension : Extension() { - override val name = "potato" - override suspend fun setup() { - publicSlashCommand { - name = "potato" - description = "Potato" - this.action { - MessageUtil.sendEmbedForPublicSlashCommandWithImage( - this, Color(0xE0311A), "Potato", - "Potato", - "https://static.tumblr.com/c06d8e0928395746a63b9c5d3cb1ce66/sl9iajp/gxFmqk38z/tumblr_static_potato-equality.jpg" - ) - } - } - } -}