Skip to content

Commit

Permalink
feat: deprecate Insult plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rushiiMachine committed Jan 29, 2025
1 parent 018807f commit c487274
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions Insult/src/main/kotlin/com.github.diamondminer88.plugins/Insult.kt
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
package com.github.diamondminer88.plugins

import android.content.Context
import com.aliucord.Http
import android.widget.Toast
import com.aliucord.Constants
import com.aliucord.annotations.AliucordPlugin
import com.aliucord.api.CommandsAPI.CommandResult
import com.aliucord.entities.Plugin
import java.io.File

@Suppress("unused")
@AliucordPlugin
@Deprecated("This plugin is deprecated")
class Insult : Plugin() {
override fun start(ctx: Context) {
commands.registerCommand(
"insult",
"Send an insult",
) {
CommandResult(Http.simpleGet("https://insult.mattbas.org/api/insult"))
}
}
Toast.makeText(
ctx,
"The Insult plugin no longer functional. It has been automatically removed.",
Toast.LENGTH_LONG
).show()

override fun stop(context: Context) {
commands.unregisterAll()
File(Constants.PLUGINS_PATH, "Insult.zip").delete()
}

override fun stop(context: Context) {}
}

0 comments on commit c487274

Please sign in to comment.