Switched to PircbotX 2.4-SNAPSHOT

This commit is contained in:
Erik C. Thauvin 2022-09-04 09:51:50 -07:00
parent afece310d2
commit d6c0b99869
7 changed files with 27 additions and 20 deletions

View file

@ -31,5 +31,10 @@
<option name="name" value="maven" /> <option name="name" value="maven" />
<option name="url" value="https://jitpack.io" /> <option name="url" value="https://jitpack.io" />
</remote-repository> </remote-repository>
<remote-repository>
<option name="id" value="MavenLocal" />
<option name="name" value="MavenLocal" />
<option name="url" value="file:$PROJECT_DIR$/../../maven/repository/" />
</remote-repository>
</component> </component>
</project> </project>

View file

@ -28,7 +28,7 @@ mainClassName = packageName + '.Mobibot'
ext.versions = [ ext.versions = [
log4j: '2.18.0', log4j: '2.18.0',
pmd : '6.48.0', pmd : '6.49.0',
] ]
repositories { repositories {
@ -43,7 +43,9 @@ dependencies {
compileOnly(semverProcessor) compileOnly(semverProcessor)
// PircBotX // PircBotX
implementation 'com.github.pircbotx:pircbotx:-SNAPSHOT' //implementation 'com.github.pircbotx:pircbotx:-SNAPSHOT'
implementation fileTree(dir: 'lib', include: '*.jar')
// Commons // Commons
implementation 'org.apache.commons:commons-lang3:3.12.0' implementation 'org.apache.commons:commons-lang3:3.12.0'
@ -76,7 +78,7 @@ dependencies {
implementation 'org.twitter4j:twitter4j-core:4.0.7' implementation 'org.twitter4j:twitter4j-core:4.0.7'
// Thauvin // Thauvin
implementation 'net.thauvin.erik:cryptoprice:0.9.0' implementation 'net.thauvin.erik:cryptoprice:1.0.0-SNAPSHOT'
implementation 'net.thauvin.erik:pinboard-poster:1.0.3' implementation 'net.thauvin.erik:pinboard-poster:1.0.3'
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25' testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25'

View file

@ -1,12 +1,11 @@
#!/bin/bash #!/bin/bash
DEPLOYDIR=/home/erik/mobitopia/mobibot ./gradlew deploy
[ $? -eq 0 ] && sftp nix3.thauvin.us <<EOF
if [ -f "deploy/mobibot.jar" ]; then cd mobitopia/mobibot
/bin/cp deploy/mobibot.jar $DEPLOYDIR lcd deploy
rm -rf $DEPLOYDIR/lib/*.jar put *.jar
cp deploy/lib/*.jar $DEPLOYDIR/lib cd lib
chmod 755 $DEPLOYDIR/*.jar $DEPLOYDIR/lib/*.jar rm *.jar
else put lib/*.jar
echo "mobibot.jar not found." EOF
fi

Binary file not shown.

Binary file not shown.

View file

@ -36,14 +36,15 @@ import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp import net.thauvin.erik.mobibot.Utils.isChannelOp
import net.thauvin.erik.mobibot.Utils.sendList import net.thauvin.erik.mobibot.Utils.sendList
import net.thauvin.erik.mobibot.Utils.toIsoLocalDate import net.thauvin.erik.mobibot.Utils.toIsoLocalDate
import org.pircbotx.PircBotX
import org.pircbotx.hooks.types.GenericMessageEvent import org.pircbotx.hooks.types.GenericMessageEvent
class Versions : AbstractCommand() { class Versions : AbstractCommand() {
private val allVersions = listOf( private val allVersions = listOf(
"Version : ${ReleaseInfo.VERSION} (${ReleaseInfo.BUILDDATE.toIsoLocalDate()})", "Version: ${ReleaseInfo.VERSION} (${ReleaseInfo.BUILDDATE.toIsoLocalDate()})",
"Platform : ${System.getProperty("os.name")} ${System.getProperty("os.version")}" + "${System.getProperty("os.name")} ${System.getProperty("os.version")} (${System.getProperty("os.arch")})" +
" (${System.getProperty("os.arch")})", ", JVM ${System.getProperty("java.runtime.version")}",
"Runtimes : Java ${System.getProperty("java.runtime.version")}, Kotlin " + KotlinVersion.CURRENT "Kotlin ${KotlinVersion.CURRENT}, PircBotX ${PircBotX.VERSION}"
) )
override val name = "versions" override val name = "versions"
override val help = listOf("To view the versions data (bot, platform, java, etc.):", helpFormat("%c $name")) override val help = listOf("To view the versions data (bot, platform, java, etc.):", helpFormat("%c $name"))

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle #Generated by the Semver Plugin for Gradle
#Thu Aug 25 10:27:04 PDT 2022 #Sat Sep 03 13:51:38 PDT 2022
version.buildmeta=345 version.buildmeta=356
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+345 version.semver=0.8.0-rc+356