Skip to content

Commit 8b65fd1

Browse files
committed
lint
1 parent 0938012 commit 8b65fd1

File tree

7 files changed

+8
-13
lines changed

7 files changed

+8
-13
lines changed

bot/src/main/java/ml/duncte123/skybot/commands/essentials/WolframAlphaCommand.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818

1919
package ml.duncte123.skybot.commands.essentials;
2020

21-
import com.fasterxml.jackson.databind.ObjectMapper;
2221
import com.wolfram.alpha.*;
2322
import com.wolfram.alpha.visitor.Visitable;
2423
import me.duncte123.botcommons.StringUtils;

bot/src/main/java/ml/duncte123/skybot/utils/AirUtils.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,8 +351,6 @@ public static PendingRequest<String> shortenUrl(String url, Variables variables,
351351
(r) -> {
352352
final ObjectNode response = toJSONObject(r, mapper);
353353

354-
System.out.println(response);
355-
356354
if (response == null) {
357355
return "Shorten did a fucky wucky and send invalid json";
358356
}

bot/src/main/kotlin/ml/duncte123/skybot/commands/fun/FakeWordCommand.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,11 @@
1919
package ml.duncte123.skybot.commands.`fun`
2020

2121
import com.fasterxml.jackson.databind.JsonNode
22-
import com.github.natanbc.reliqua.limiter.RateLimiter
2322
import me.duncte123.botcommons.messaging.EmbedUtils
2423
import me.duncte123.botcommons.messaging.MessageUtils.sendEmbed
2524
import me.duncte123.botcommons.web.WebUtils
2625
import ml.duncte123.skybot.Variables
2726
import ml.duncte123.skybot.objects.SlashSupport
28-
import ml.duncte123.skybot.objects.command.Command
2927
import ml.duncte123.skybot.objects.command.CommandCategory
3028
import ml.duncte123.skybot.objects.command.CommandContext
3129
import ml.duncte123.skybot.utils.AirUtils

bot/src/main/kotlin/ml/duncte123/skybot/commands/music/BassBoostCommand.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ class BassBoostCommand : MusicCommand() {
9595
"level",
9696
"How strong should the bass boost be",
9797
true,
98-
false,
98+
false
9999
)
100100
.addChoice("high", "high")
101101
.addChoice("med", "med")
@@ -125,7 +125,7 @@ class BassBoostCommand : MusicCommand() {
125125

126126
else -> {
127127
event.reply(
128-
"(this should never happen) Unknown bassboost preset ${arg}, please choose from high/med/low/off"
128+
"(this should never happen) Unknown bassboost preset $arg, please choose from high/med/low/off"
129129
).queue()
130130
-1.0f
131131
}
@@ -135,7 +135,7 @@ class BassBoostCommand : MusicCommand() {
135135
return
136136
}
137137

138-
event.reply("Set the bassboost to `${arg}`").queue()
138+
event.reply("Set the bassboost to `$arg`").queue()
139139
setLavalinkEQ(gain, variables, event.guild!!.idLong)
140140
}
141141
}

bot/src/main/kotlin/ml/duncte123/skybot/commands/music/JoinCommand.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@ class JoinCommand : MusicCommand() {
9696
return
9797
}
9898

99-
10099
val mng = variables.audioUtils.getMusicManager(event.guild!!.idLong)
101100

102101
mng.latestChannelId = event.channel.idLong

bot/src/main/kotlin/ml/duncte123/skybot/commands/music/LyricsCommand.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import ml.duncte123.skybot.objects.command.CommandContext
3030
import ml.duncte123.skybot.objects.command.MusicCommand
3131
import ml.duncte123.skybot.objects.config.DunctebotConfig
3232
import net.dv8tion.jda.api.EmbedBuilder
33-
import net.dv8tion.jda.api.entities.MessageEmbed
3433
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
3534
import net.dv8tion.jda.api.interactions.commands.OptionType
3635
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData

bot/src/main/kotlin/ml/duncte123/skybot/commands/music/StopCommand.kt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,10 @@ class StopCommand : MusicCommand() {
8787
return
8888
}
8989

90-
event.reply("Only the person that started this track " +
91-
"or people with the `Manage Server` permission can stop this track\n" +
92-
"(this behaviour can be altered in the dashboard)").queue()
90+
event.reply(
91+
"Only the person that started this track " +
92+
"or people with the `Manage Server` permission can stop this track\n" +
93+
"(this behaviour can be altered in the dashboard)"
94+
).queue()
9395
}
9496
}

0 commit comments

Comments
 (0)