Updated dependencies and misc. cleanup

This commit is contained in:
Erik C. Thauvin 2022-09-16 00:03:49 -07:00
parent 3ba2dfba4a
commit 29d73f20cf
3 changed files with 20 additions and 22 deletions

View file

@ -63,7 +63,7 @@ dependencies {
implementation'org.jetbrains.kotlinx:kotlinx-cli:0.3.5' implementation'org.jetbrains.kotlinx:kotlinx-cli:0.3.5'
// Logging // Logging
implementation 'org.slf4j:slf4j-api:2.0.0' implementation 'org.slf4j:slf4j-api:2.0.1'
implementation "org.apache.logging.log4j:log4j-api:$versions.log4j" implementation "org.apache.logging.log4j:log4j-api:$versions.log4j"
implementation "org.apache.logging.log4j:log4j-core:$versions.log4j" implementation "org.apache.logging.log4j:log4j-core:$versions.log4j"
implementation "org.apache.logging.log4j:log4j-slf4j18-impl:$versions.log4j" implementation "org.apache.logging.log4j:log4j-slf4j18-impl:$versions.log4j"

View file

@ -47,21 +47,19 @@ import static net.thauvin.erik.mobibot.Utils.bold;
* @since 1.0 * @since 1.0
*/ */
public final class War extends AbstractModule { public final class War extends AbstractModule {
// Random
private static final SecureRandom RANDOM = new SecureRandom();
// War command
private static final String WAR_CMD = "war";
private static final String[] HEARTS =
{"🂱", "🂾", "🂽", "🂻", "🂺", "🂹", "🂸", "🂷", "🂶", "🂵", "🂴", "🂳", "🂲"};
private static final String[] SPADES =
{"🂡", "🂮", "🂭", "🂫", "🂪", "🂩", "🂨", "🂧", "🂦", "🂥", "🂤", "🂣", "🂢"};
private static final String[] DIAMONDS =
{"🃁", "🃎", "🃍", "🃋", "🃊", "🃉", "🃈", "🃇", "🃆", "🃅", "🃄", "🃃", "🃂"};
private static final String[] CLUBS = private static final String[] CLUBS =
{"🃑", "🃞", "🃝", "🃛", "🃚", "🃙", "🃘", "🃗", "🃖", "🃕", "🃔", "🃓", "🃒"}; {"🃑", "🃞", "🃝", "🃛", "🃚", "🃙", "🃘", "🃗", "🃖", "🃕", "🃔", "🃓", "🃒"};
private static final String[] DIAMONDS =
{"🃁", "🃎", "🃍", "🃋", "🃊", "🃉", "🃈", "🃇", "🃆", "🃅", "🃄", "🃃", "🃂"};
private static final String[] HEARTS =
{"🂱", "🂾", "🂽", "🂻", "🂺", "🂹", "🂸", "🂷", "🂶", "🂵", "🂴", "🂳", "🂲"};
// Random
private static final SecureRandom RANDOM = new SecureRandom();
private static final String[] SPADES =
{"🂡", "🂮", "🂭", "🂫", "🂪", "🂩", "🂨", "🂧", "🂦", "🂥", "🂤", "🂣", "🂢"};
private static final String[][] DECK = {HEARTS, SPADES, DIAMONDS, CLUBS}; private static final String[][] DECK = {HEARTS, SPADES, DIAMONDS, CLUBS};
// War command
private static final String WAR_CMD = "war";
/** /**
* The default constructor. * The default constructor.
@ -75,12 +73,6 @@ public final class War extends AbstractModule {
help.add(Utils.helpFormat("%c " + WAR_CMD)); help.add(Utils.helpFormat("%c " + WAR_CMD));
} }
@NotNull
@Override
public String getName() {
return "War";
}
/** /**
* {@inheritDoc} * {@inheritDoc}
*/ */
@ -108,4 +100,10 @@ public final class War extends AbstractModule {
} while (i == y); } while (i == y);
} }
@NotNull
@Override
public String getName() {
return "War";
}
} }

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle #Generated by the Semver Plugin for Gradle
#Wed Sep 14 01:53:58 PDT 2022 #Fri Sep 16 00:01:57 PDT 2022
version.buildmeta=390 version.buildmeta=525
version.major=0 version.major=0
version.minor=8 version.minor=8
version.patch=0 version.patch=0
version.prerelease=rc version.prerelease=rc
version.project=mobibot version.project=mobibot
version.semver=0.8.0-rc+390 version.semver=0.8.0-rc+525