From 4b95b0bbe27a0e3416036bde6e65c92b8ed36702 Mon Sep 17 00:00:00 2001 From: "Erik C. Thauvin" Date: Sat, 28 Mar 2020 11:31:52 -0700 Subject: [PATCH 001/262] Version 0.8 starts. --- .idea/mobibot.iml | 2 +- .idea/modules/mobibot.main.iml | 2 +- .idea/modules/mobibot.test.iml | 4 +- build.gradle | 4 +- config/spotbugs/excludeFilter.xml | 7 +- detekt-baseline.xml | 52 +- .../net/thauvin/erik/mobibot/ReleaseInfo.java | 12 +- .../net/thauvin/erik/mobibot/Commands.java | 149 -- .../net/thauvin/erik/mobibot/Constants.java | 38 +- .../net/thauvin/erik/mobibot/Mobibot.java | 1268 +++++------------ .../net/thauvin/erik/mobibot/TwitterTimer.kt | 2 +- .../java/net/thauvin/erik/mobibot/Utils.java | 10 + .../erik/mobibot/commands/AbstractCommand.kt | 67 + .../thauvin/erik/mobibot/commands/Cycle.kt | 68 + .../thauvin/erik/mobibot/commands/Ignore.kt | 111 ++ .../net/thauvin/erik/mobibot/commands/Info.kt | 92 ++ .../net/thauvin/erik/mobibot/commands/Me.kt | 62 + .../erik/mobibot/commands/MobibotVersion.kt | 64 + .../thauvin/erik/mobibot/commands/Modules.kt | 68 + .../net/thauvin/erik/mobibot/commands/Msg.kt | 67 + .../net/thauvin/erik/mobibot/commands/Nick.kt | 62 + .../thauvin/erik/mobibot/commands/Recap.kt | 95 ++ .../net/thauvin/erik/mobibot/commands/Say.kt | 63 + .../thauvin/erik/mobibot/commands/Users.kt | 71 + .../erik/mobibot/commands/links/Comment.kt | 130 ++ .../erik/mobibot/commands/links/Posting.kt | 147 ++ .../erik/mobibot/commands/links/Tags.kt | 92 ++ .../erik/mobibot/commands/links/UrlMgr.kt | 243 ++++ .../erik/mobibot/commands/links/View.kt | 130 ++ .../mobibot/{ => commands}/tell/Tell.java | 104 +- .../{ => commands}/tell/TellMessage.java | 2 +- .../{ => commands}/tell/TellMessagesMgr.java | 2 +- .../erik/mobibot/entries/EntriesUtils.java | 11 +- .../erik/mobibot/modules/AbstractModule.java | 2 +- .../thauvin/erik/mobibot/modules/Calc.java | 8 +- .../mobibot/modules/CurrencyConverter.java | 14 +- .../thauvin/erik/mobibot/modules/Dice.java | 12 +- .../erik/mobibot/modules/GoogleSearch.java | 128 +- .../thauvin/erik/mobibot/modules/Joke.java | 6 +- .../thauvin/erik/mobibot/modules/Lookup.java | 7 +- .../thauvin/erik/mobibot/modules/Ping.java | 7 +- .../erik/mobibot/modules/RockPaperScissors.kt | 17 +- .../erik/mobibot/modules/StockQuote.java | 34 +- .../thauvin/erik/mobibot/modules/Twitter.java | 7 +- .../net/thauvin/erik/mobibot/modules/War.java | 12 +- .../erik/mobibot/modules/Weather2.java | 22 +- .../erik/mobibot/modules/WorldTime.java | 11 +- .../{ => commands}/tell/TellMessageTest.java | 2 +- version.properties | 12 +- 49 files changed, 2284 insertions(+), 1318 deletions(-) delete mode 100644 src/main/java/net/thauvin/erik/mobibot/Commands.java create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/AbstractCommand.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Cycle.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Ignore.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Info.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Me.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/MobibotVersion.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Modules.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Msg.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Nick.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Recap.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Say.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/Users.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/links/Comment.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/links/Posting.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/links/Tags.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/links/UrlMgr.kt create mode 100644 src/main/java/net/thauvin/erik/mobibot/commands/links/View.kt rename src/main/java/net/thauvin/erik/mobibot/{ => commands}/tell/Tell.java (75%) rename src/main/java/net/thauvin/erik/mobibot/{ => commands}/tell/TellMessage.java (99%) rename src/main/java/net/thauvin/erik/mobibot/{ => commands}/tell/TellMessagesMgr.java (99%) rename src/test/java/net/thauvin/erik/mobibot/{ => commands}/tell/TellMessageTest.java (98%) diff --git a/.idea/mobibot.iml b/.idea/mobibot.iml index 1b43317..7b66ece 100644 --- a/.idea/mobibot.iml +++ b/.idea/mobibot.iml @@ -1,5 +1,5 @@ - + diff --git a/.idea/modules/mobibot.main.iml b/.idea/modules/mobibot.main.iml index 294ae5d..49a5e9b 100644 --- a/.idea/modules/mobibot.main.iml +++ b/.idea/modules/mobibot.main.iml @@ -1,5 +1,5 @@ - + diff --git a/.idea/modules/mobibot.test.iml b/.idea/modules/mobibot.test.iml index 75edcff..b92cc97 100644 --- a/.idea/modules/mobibot.test.iml +++ b/.idea/modules/mobibot.test.iml @@ -1,5 +1,5 @@ - + @@ -8,7 +8,7 @@