From 9fb870648e9dced0c0faf490a7720bb1a70caab0 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Mon, 8 Nov 2021 13:54:48 -0800 Subject: [PATCH] Moved to PircBotX and assertk. --- .idea/jarRepositories.xml | 5 + .idea/mobibot.iml | 7 + build.gradle | 28 +- config/detekt/baseline.xml | 88 ++- properties/log4j2.xml | 32 +- properties/mobibot.properties | 7 +- .../net/thauvin/erik/mobibot/modules/War.java | 22 +- .../kotlin/net/thauvin/erik/mobibot/Addons.kt | 27 +- .../net/thauvin/erik/mobibot/Constants.kt | 17 +- .../net/thauvin/erik/mobibot/FeedReader.kt | 44 +- .../net/thauvin/erik/mobibot/Mobibot.kt | 631 +++++------------- .../mobibot/{PinboardUtils.kt => Pinboard.kt} | 83 ++- .../net/thauvin/erik/mobibot/TwitterOAuth.kt | 1 - .../net/thauvin/erik/mobibot/TwitterTimer.kt | 5 +- .../kotlin/net/thauvin/erik/mobibot/Utils.kt | 72 +- .../erik/mobibot/commands/AbstractCommand.kt | 26 +- .../thauvin/erik/mobibot/commands/AddLog.kt | 70 -- .../erik/mobibot/commands/ChannelFeed.kt | 19 +- .../thauvin/erik/mobibot/commands/Cycle.kt | 36 +- .../thauvin/erik/mobibot/commands/Debug.kt | 59 -- .../net/thauvin/erik/mobibot/commands/Die.kt | 36 +- .../thauvin/erik/mobibot/commands/Ignore.kt | 58 +- .../net/thauvin/erik/mobibot/commands/Info.kt | 48 +- .../net/thauvin/erik/mobibot/commands/Me.kt | 22 +- .../thauvin/erik/mobibot/commands/Modules.kt | 34 +- .../net/thauvin/erik/mobibot/commands/Msg.kt | 27 +- .../net/thauvin/erik/mobibot/commands/Nick.kt | 22 +- .../thauvin/erik/mobibot/commands/Recap.kt | 20 +- .../net/thauvin/erik/mobibot/commands/Say.kt | 22 +- .../thauvin/erik/mobibot/commands/Users.kt | 33 +- .../thauvin/erik/mobibot/commands/Versions.kt | 22 +- .../erik/mobibot/commands/links/Comment.kt | 103 ++- .../erik/mobibot/commands/links/LinksMgr.kt | 127 ++-- .../erik/mobibot/commands/links/Posting.kt | 112 ++-- .../erik/mobibot/commands/links/Tags.kt | 35 +- .../erik/mobibot/commands/links/View.kt | 51 +- .../erik/mobibot/commands/tell/Tell.kt | 163 ++--- .../erik/mobibot/commands/tell/TellMessage.kt | 4 +- .../mobibot/commands/tell/TellMessagesMgr.kt | 39 +- .../{commands/Kill.kt => entries/Entries.kt} | 38 +- .../erik/mobibot/entries/EntriesMgr.kt | 262 -------- .../erik/mobibot/entries/EntriesUtils.kt | 10 +- .../thauvin/erik/mobibot/entries/EntryLink.kt | 15 +- .../thauvin/erik/mobibot/entries/FeedsMgr.kt | 190 ++++++ .../erik/mobibot/modules/AbstractModule.kt | 18 +- .../net/thauvin/erik/mobibot/modules/Calc.kt | 35 +- .../erik/mobibot/modules/CryptoPrices.kt | 48 +- .../erik/mobibot/modules/CurrencyConverter.kt | 113 ++-- .../net/thauvin/erik/mobibot/modules/Dice.kt | 32 +- .../erik/mobibot/modules/GoogleSearch.kt | 64 +- .../net/thauvin/erik/mobibot/modules/Joke.kt | 27 +- .../thauvin/erik/mobibot/modules/Lookup.kt | 78 +-- .../net/thauvin/erik/mobibot/modules/Ping.kt | 14 +- .../erik/mobibot/modules/RockPaperScissors.kt | 23 +- .../erik/mobibot/modules/StockQuote.kt | 114 ++-- .../erik/mobibot/modules/ThreadedModule.kt | 24 +- .../thauvin/erik/mobibot/modules/Twitter.kt | 105 ++- .../thauvin/erik/mobibot/modules/Weather2.kt | 39 +- .../thauvin/erik/mobibot/modules/WorldTime.kt | 611 ++++++++--------- .../{Sanitize.kt => ExceptionSanitizer.kt} | 19 +- .../thauvin/erik/mobibot/FeedReaderTest.kt | 28 +- .../{PinboardUtilsTest.kt => PinboardTest.kt} | 28 +- .../net/thauvin/erik/mobibot/UtilsTest.kt | 105 +-- .../mobibot/commands/tell/TellMessageTest.kt | 30 +- .../erik/mobibot/entries/EntryLinkTest.kt | 57 +- .../erik/mobibot/entries/FeedMgrTest.kt | 121 ++++ .../thauvin/erik/mobibot/modules/CalcTest.kt | 18 +- .../erik/mobibot/modules/CryptoPricesTest.kt | 21 +- .../mobibot/modules/CurrencyConverterTest.kt | 43 +- .../thauvin/erik/mobibot/modules/DiceTest.kt | 9 +- .../erik/mobibot/modules/GoogleSearchTest.kt | 47 +- .../thauvin/erik/mobibot/modules/JokeTest.kt | 11 +- .../erik/mobibot/modules/LookupTest.kt | 9 +- .../mobibot/modules/ModuleExceptionTest.kt | 38 +- .../thauvin/erik/mobibot/modules/PingTest.kt | 8 +- .../mobibot/modules/RockPaperScissorsTest.kt | 22 +- .../erik/mobibot/modules/StockQuoteTest.kt | 44 +- .../erik/mobibot/modules/TwitterTest.kt | 10 +- .../erik/mobibot/modules/Weather2Test.kt | 61 +- .../erik/mobibot/modules/WordTimeTest.kt | 27 +- .../thauvin/erik/mobibot/msg/TestMessage.kt | 9 +- src/test/resources/current.xml | 36 + version.properties | 6 +- 83 files changed, 2347 insertions(+), 2577 deletions(-) create mode 100644 .idea/mobibot.iml rename src/main/kotlin/net/thauvin/erik/mobibot/{PinboardUtils.kt => Pinboard.kt} (63%) delete mode 100644 src/main/kotlin/net/thauvin/erik/mobibot/commands/AddLog.kt delete mode 100644 src/main/kotlin/net/thauvin/erik/mobibot/commands/Debug.kt rename src/main/kotlin/net/thauvin/erik/mobibot/{commands/Kill.kt => entries/Entries.kt} (74%) delete mode 100644 src/main/kotlin/net/thauvin/erik/mobibot/entries/EntriesMgr.kt create mode 100644 src/main/kotlin/net/thauvin/erik/mobibot/entries/FeedsMgr.kt rename src/test/kotlin/net/thauvin/erik/mobibot/{Sanitize.kt => ExceptionSanitizer.kt} (82%) rename src/test/kotlin/net/thauvin/erik/mobibot/{PinboardUtilsTest.kt => PinboardTest.kt} (81%) create mode 100644 src/test/kotlin/net/thauvin/erik/mobibot/entries/FeedMgrTest.kt create mode 100644 src/test/resources/current.xml diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 8920634..75b7aaa 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -31,5 +31,10 @@