Skip to content

Commit

Permalink
I shitted
Browse files Browse the repository at this point in the history
  • Loading branch information
vlOd committed Feb 25, 2023
1 parent dc79bea commit e7bc385
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ dependencies {
java {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8

withSourcesJar()
}

Expand Down
6 changes: 3 additions & 3 deletions src/main/java/me/vlod/lightshotscraper/CommandHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ private void doSetLinkIDFormatCommand(String format) {
LightshotScraper.logger.info("Set link ID format to %s", format);
}

private void doSetDiscordWebhookCommand(String webhook) {
this.app.discordWebhook = new DiscordWebhook(webhook);
LightshotScraper.logger.info("Set Discord webhook to %s", webhook);
private void doSetDiscordWebhookCommand(String webHook) {
this.app.discordWebhook = webHook.length() < 1 ? null : new DiscordWebhook(webHook);
LightshotScraper.logger.info("Set Discord webhook to %s", webHook);
}

private void doExitCommand() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class LightshotScraper implements Runnable {
static {
// Logger setup
logger = new Logger();

// Console target
logger.targets.add(new Delegate() {
@Override
Expand Down

0 comments on commit e7bc385

Please sign in to comment.