summaryrefslogtreecommitdiff
path: root/src/main/java/at/hannibal2/skyhanni/config/commands
diff options
context:
space:
mode:
authorNetheriteMiner <88792142+NetheriteMiner@users.noreply.github.com>2023-10-30 13:53:17 -0400
committerGitHub <noreply@github.com>2023-10-30 18:53:17 +0100
commit76d4d112ac2892fa8b99dcc90e823ed4597ff371 (patch)
tree8143c2002d6abf51cd151b069f08a48c50105902 /src/main/java/at/hannibal2/skyhanni/config/commands
parentcbebd6916c95440f0631ac4600106b99c3e089bd (diff)
downloadskyhanni-76d4d112ac2892fa8b99dcc90e823ed4597ff371.tar.gz
skyhanni-76d4d112ac2892fa8b99dcc90e823ed4597ff371.tar.bz2
skyhanni-76d4d112ac2892fa8b99dcc90e823ed4597ff371.zip
Fix: Enable translator and fix modifying links (#559)
Enable translator and fix modifying links #559
Diffstat (limited to 'src/main/java/at/hannibal2/skyhanni/config/commands')
-rw-r--r--src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
index ea77de371..1e32ff718 100644
--- a/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
+++ b/src/main/java/at/hannibal2/skyhanni/config/commands/Commands.kt
@@ -7,6 +7,7 @@ import at.hannibal2.skyhanni.data.GuiEditManager
import at.hannibal2.skyhanni.data.PartyAPI
import at.hannibal2.skyhanni.features.bingo.BingoCardDisplay
import at.hannibal2.skyhanni.features.bingo.BingoNextStepHelper
+import at.hannibal2.skyhanni.features.chat.Translator
import at.hannibal2.skyhanni.features.combat.ghostcounter.GhostUtil
import at.hannibal2.skyhanni.features.commands.PartyCommands
import at.hannibal2.skyhanni.features.event.diana.BurrowWarpHelper
@@ -162,13 +163,13 @@ object Commands {
"shfarmingprofile",
"Look up the farming profile from yourself or another player on elitebot.dev"
) { FarmingWeightDisplay.lookUpCommand(it) }
-// registerCommand(
-// "shcopytranslation",
-// "<language code (2 letters)> <messsage to translate>\n" +
-// "Requires the Chat > Translator feature to be enabled.\n" +
-// "Copies the translation for a given message to your clipboard. " +
-// "Language codes are at the end of the translation when you click on a message."
-// ) { Translator.fromEnglish(it) }
+ registerCommand(
+ "shcopytranslation",
+ "<language code (2 letters)> <messsage to translate>\n" +
+ "Requires the Chat > Translator feature to be enabled.\n" +
+ "Copies the translation for a given message to your clipboard. " +
+ "Language codes are at the end of the translation when you click on a message."
+ ) { Translator.fromEnglish(it) }
registerCommand(
"shmouselock",
"Lock/Unlock the mouse so it will no longer rotate the player (for farming)"
@@ -297,10 +298,10 @@ object Commands {
registerCommand("shsendcontests", "") { GardenNextJacobContest.shareContestConfirmed(it) }
registerCommand("shwords", "Opens the config list for modifying visual words") { openVisualWords() }
registerCommand("shstopaccountupgradereminder", "") { AccountUpgradeReminder.disable() }
-// registerCommand(
-// "shsendtranslation",
-// "Respond with a translation of the message that the user clicks"
-// ) { Translator.toEnglish(it) }
+ registerCommand(
+ "shsendtranslation",
+ "Respond with a translation of the message that the user clicks"
+ ) { Translator.toEnglish(it) }
}
private fun shortenedCommands() {