Compare commits

...

2 commits

Author SHA1 Message Date
adaff5ec38 Updated dependencies 2023-10-26 20:46:53 -07:00
acaa27f20d Added support for currency X in Y command 2023-10-26 20:46:36 -07:00
3 changed files with 7 additions and 8 deletions

View file

@ -34,7 +34,7 @@ def isNonStable = { String version ->
mainClassName = packageName + '.Mobibot'
ext.versions = [
log4j: '2.21.0',
log4j: '2.21.1',
pmd : '6.55.0',
]
@ -76,12 +76,11 @@ dependencies {
implementation "org.apache.logging.log4j:log4j-slf4j2-impl:$versions.log4j"
implementation 'com.rometools:rome:2.1.0'
implementation 'com.squareup.okhttp3:okhttp:4.11.0'
implementation 'com.squareup.okio:okio:3.6.0'
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
implementation 'net.aksingh:owm-japis:2.5.3.0'
implementation 'net.objecthunter:exp4j:0.4.8'
implementation 'org.json:json:20231013'
implementation 'org.jsoup:jsoup:1.16.1'
implementation 'org.jsoup:jsoup:1.16.2'
// Thauvin
implementation 'net.thauvin.erik:cryptoprice:1.0.1'

View file

@ -76,7 +76,7 @@ class CurrencyConverter : AbstractModule() {
if (SYMBOLS.isEmpty()) {
event.respond(EMPTY_SYMBOLS_TABLE)
} else if (args.matches("\\d+([,\\d]+)?(\\.\\d+)? [a-zA-Z]{3}+ to [a-zA-Z]{3}+".toRegex())) {
} else if (args.matches("\\d+([,\\d]+)?(\\.\\d+)? [a-zA-Z]{3}+ (to|in) [a-zA-Z]{3}+".toRegex())) {
val msg = convertCurrency(properties[API_KEY_PROP], args)
event.respond(msg.msg)
if (msg.isError) {

View file

@ -1,9 +1,9 @@
#Generated by the Semver Plugin for Gradle
#Fri Oct 13 20:37:28 PDT 2023
version.buildmeta=20231013203728
#Thu Oct 26 20:43:39 PDT 2023
version.buildmeta=20231026204339
version.major=0
version.minor=8
version.patch=0
version.prerelease=rc
version.project=mobibot
version.semver=0.8.0-rc+20231013203728
version.semver=0.8.0-rc+20231026204339