Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
duncte123 committed Aug 24, 2023
1 parent 0938012 commit 8b65fd1
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

package ml.duncte123.skybot.commands.essentials;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.wolfram.alpha.*;
import com.wolfram.alpha.visitor.Visitable;
import me.duncte123.botcommons.StringUtils;
Expand Down
2 changes: 0 additions & 2 deletions bot/src/main/java/ml/duncte123/skybot/utils/AirUtils.java
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,6 @@ public static PendingRequest<String> shortenUrl(String url, Variables variables,
(r) -> {
final ObjectNode response = toJSONObject(r, mapper);

System.out.println(response);

if (response == null) {
return "Shorten did a fucky wucky and send invalid json";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,11 @@
package ml.duncte123.skybot.commands.`fun`

import com.fasterxml.jackson.databind.JsonNode
import com.github.natanbc.reliqua.limiter.RateLimiter
import me.duncte123.botcommons.messaging.EmbedUtils
import me.duncte123.botcommons.messaging.MessageUtils.sendEmbed
import me.duncte123.botcommons.web.WebUtils
import ml.duncte123.skybot.Variables
import ml.duncte123.skybot.objects.SlashSupport
import ml.duncte123.skybot.objects.command.Command
import ml.duncte123.skybot.objects.command.CommandCategory
import ml.duncte123.skybot.objects.command.CommandContext
import ml.duncte123.skybot.utils.AirUtils
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ class BassBoostCommand : MusicCommand() {
"level",
"How strong should the bass boost be",
true,
false,
false
)
.addChoice("high", "high")
.addChoice("med", "med")
Expand Down Expand Up @@ -125,7 +125,7 @@ class BassBoostCommand : MusicCommand() {

else -> {
event.reply(
"(this should never happen) Unknown bassboost preset ${arg}, please choose from high/med/low/off"
"(this should never happen) Unknown bassboost preset $arg, please choose from high/med/low/off"
).queue()
-1.0f
}
Expand All @@ -135,7 +135,7 @@ class BassBoostCommand : MusicCommand() {
return
}

event.reply("Set the bassboost to `${arg}`").queue()
event.reply("Set the bassboost to `$arg`").queue()
setLavalinkEQ(gain, variables, event.guild!!.idLong)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ class JoinCommand : MusicCommand() {
return
}


val mng = variables.audioUtils.getMusicManager(event.guild!!.idLong)

mng.latestChannelId = event.channel.idLong
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import ml.duncte123.skybot.objects.command.CommandContext
import ml.duncte123.skybot.objects.command.MusicCommand
import ml.duncte123.skybot.objects.config.DunctebotConfig
import net.dv8tion.jda.api.EmbedBuilder
import net.dv8tion.jda.api.entities.MessageEmbed
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent
import net.dv8tion.jda.api.interactions.commands.OptionType
import net.dv8tion.jda.api.interactions.commands.build.SubcommandData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ class StopCommand : MusicCommand() {
return
}

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

0 comments on commit 8b65fd1

Please sign in to comment.