Compare commits

...

858 commits

Author SHA1 Message Date
b4754f1311
Bump Gson to version 2.13.1 2025-04-24 11:32:11 -07:00
86522d6b3e
Revert "Add JitPack token"
This reverts commit 749334493b.
2025-04-18 17:24:30 -07:00
31e882eb42
Remove test on coverage 2025-04-18 17:02:45 -07:00
749334493b
Add JitPack token 2025-04-18 15:55:57 -07:00
9e49da5d56
Bump Kotlinx Coroutines to version 1.10.2 2025-04-13 13:30:58 -07:00
ef9bbe6e1f
Bump Gson to version 2.13.0 2025-04-13 13:30:30 -07:00
491f451acb
Bump Commons Text to version 1.13.1 2025-04-13 13:30:07 -07:00
82b40a49b2
Update extensions
Bump JaCoCo Reports to version 0.9.10
Bump Generated Version to version 1.0.1
2025-04-13 13:29:32 -07:00
abc33d05f7
Bump JUnit to version 5.12.2 2025-04-13 13:28:38 -07:00
fedebc7ed4
Cleanup compile command 2025-03-26 23:34:14 -07:00
310687cdce
Update to latest extensions snapshots 2025-03-26 23:33:32 -07:00
eed8277ed6
Add API response logging 2025-03-26 23:32:56 -07:00
75ccf1a0ed
Set progressive compiling 2025-03-23 20:02:55 -07:00
6173639cdd
Bump Kotlin matrix version to 2.1.20 2025-03-22 00:47:11 -07:00
7e58e5840f
Revert "Add build/test job for Windows"
This reverts commit 6f1aa72a
2025-03-22 00:45:24 -07:00
48b92c33fd
Set the shell cmd under Windows 2025-03-22 00:35:11 -07:00
599d819dc9
Add call to Windows run steps 2025-03-22 00:28:21 -07:00
93d761b13b
Change run to script in Windows job 2025-03-22 00:24:22 -07:00
1f5903c5e9
Fix bld executable name under Windows 2025-03-22 00:19:17 -07:00
6f1aa72ad0
Add build/test job for Windows 2025-03-22 00:15:10 -07:00
45f602fbe2
Update snapshot dependencies
Bump Pinboard Poster to version 1.2.1-SNAPSHOT
Bump JokeApi to version 1.0.1-SNAPSHOT
2025-03-21 23:40:45 -07:00
4b7f41660f
Bump Kotlin extension to version 1.1.0-SNAPSHOT 2025-03-21 23:36:28 -07:00
5f1eb63c4f
Combine Kotlin compile options 2025-03-20 10:56:00 -07:00
8537c8a436
Add Kotlin compile options for JDK 24 2025-03-20 10:40:29 -07:00
23797a2a04
Bump Kotlin to version 2.1.20 2025-03-20 10:38:09 -07:00
068ba7b6e5
Bump to Gemini 2.0 Flash 2025-03-18 23:55:29 -07:00
e974f3f4bc
Bump to GPT4 2025-03-18 23:55:13 -07:00
daf5cad807
JDK 24 2025-03-18 23:14:34 -07:00
00178b4e16
Update User-Agent 2025-03-18 14:55:36 -07:00
bfc468de5b
Bump JDK from version 20 to 21 2025-03-18 05:16:20 -07:00
4d2f1e7978
Update dependencies
Bump Detekt extension to version 0.9.9
Bump Generated Version extension t version 1.0.0

Bump Commons Codec to version 1.18.8
Bump Gson to version 2.12.1
Bump SLF4J to version 2.0.17
Bump org.json to version 20250107
Bump Jsoup to version 1.19.1
Bump Junit to version 5.12.1
2025-03-18 05:15:38 -07:00
765279c887
Bump Kotlin to version 2.1.10 2025-03-18 05:08:37 -07:00
1a1195ca28
Bump bld to version 2.2.1 2025-03-18 05:06:57 -07:00
f589518466
chore: Update copyright notices for 2025 2025-01-02 18:00:17 -08:00
f05ab97513
build: Bump JokeApi to version 1.0.0-SNAPSHOT 2025-01-02 17:59:13 -08:00
16ac7937fa
build: Bump org.json to version 20241224 2025-01-02 17:58:37 -08:00
67de345c25
Fixed kotlin coverage version 2024-12-21 07:21:48 -08:00
4f0f4214c5
Updated POM 2024-12-21 07:14:10 -08:00
700369d7c9
Updated dependencies
Bumped JUnit to version 5.11.4
Bumped Log4j to version 2.24.3
Bumped Commons Text to version 1.13.0
Bumped Jsoup to version 1.18.3
Bumped Kotlin Coroutines to version 1.10.1
Bumped Kotlin extension to version 1.0.3
2024-12-21 06:59:40 -08:00
64bd5c92af
Don't clean/delete deploy dir if not there 2024-11-27 22:32:12 -08:00
83b4b18be7
Added pom-root command 2024-11-27 22:29:31 -08:00
f27501634c
Ensured HttpUrlConnection is properly disconnected 2024-11-27 22:26:46 -08:00
fcbfe63aee
Updated dependencies
Bumped Kotlin to version 2.1.0
Bumped Log4J to version 2.24.2
Bumped LangChain4J to version 0.36.2
Bumped Jsoup to version 1.18.2
Bumped UrlEncoder to version 1.6.0
Bumped JUnit to version 5.11.3
2024-11-27 22:24:45 -08:00
4b908d596e
Converted deploy script to fish 2024-09-18 20:38:04 -07:00
97e1e5e73b
Bumped Kotlin Coroutines to version 1.9.0 2024-09-18 20:28:58 -07:00
ff98e39b0c
Test against Kotlin 2.0.20 in CI workflows 2024-09-10 00:09:47 -07:00
863de0c219
Bumped Kotlin extension to version 1.0.2 2024-09-10 00:08:51 -07:00
c60531f617
Moved to LangChain4J for ChatGPT and Gemini modules 2024-09-08 19:30:53 -07:00
ebc3da70e4
Bumped bld to version 2.1.0 2024-09-08 19:29:55 -07:00
3cbe44c1c0
Updated dependencies
Bumped Kotlin to version 2.0.1
Bumped Commons Lang3 to version 3.16.0
Bumped slf4j-api to version 2.0.15
Bumped Commons Codec to version 1.17.1
Bumped Google Cloud VertexAI to version 1.7.0
2024-08-09 18:10:59 -07:00
2905dec49f
Bumped bld to version 2.0.1 2024-08-09 18:06:24 -07:00
ebf05fa398
Fixed root POM generation 2024-07-15 21:01:00 -07:00
8d9acd8184
Moved to Gemini 1.5 Flash 2024-07-15 21:00:28 -07:00
c3a8018cc3
Cleaned up CI workflows 2024-07-15 20:59:04 -07:00
db0e4d30f1
Updated various dependencies
Cleaned up CI workflows
2024-07-14 20:12:08 -07:00
3419e12f06
Bumped dependencies versions
Bumped Kotlin to version 2.0.0
Bumped Gson to version 2.11.0
Bumped VertexAI (Gemini) to version 1.4.0
2024-05-27 00:18:06 -07:00
3f7fb10343
Bumped extensions versions
Bumped GeneratedVersion extenions to version 0.9.6
Bumped Kotlin extension to version 0.9.8
Bumped Detekt extension to version 0.9.4
2024-05-27 00:18:00 -07:00
cd873acc24
Bumped Kotlin Coroutines to version 1.8.1 2024-05-11 13:05:40 -07:00
8959a13444
Added root POM generation to updates command 2024-05-09 08:06:54 -07:00
48d7953580
Updated POM 2024-05-09 07:55:42 -07:00
6db8a9c8e3
Added additional Kotlin standard libraries 2024-05-09 07:51:37 -07:00
2118c6122c
Bumped VertexAI (Gemini) to version 1.3.0 2024-05-09 07:41:17 -07:00
d2dd66fb4b
Bumped Kotlin to version 1.9.24 2024-05-08 17:02:57 -07:00
b020ae4c0d
Bumped Guava to version 33.2.0 2024-05-08 17:02:18 -07:00
833421976e
Bumped Commons Codec to version 1.17.0 2024-05-08 17:01:32 -07:00
e83e12bd11
Bumped Kotlin extension to verison 0.9.4 2024-05-08 17:00:57 -07:00
c43d4c6dec
Bumped bld to version 1.9.1 2024-05-08 17:00:13 -07:00
4f9ff1b641
Execute ChatGpt test only when GitHub is running coverage 2024-04-26 17:36:11 -07:00
33a3e3c7ef
Revert "Execute AI tests only when GitHub is running coverage"
This reverts commit 0405c69d98.
2024-04-26 17:13:07 -07:00
0405c69d98
Execute AI tests only when GitHub is running coverage 2024-04-26 17:07:20 -07:00
8321c2ea48
Bumped VertexAI (Gemini) to version 1.2.0
Bumped AssertK to version 0.28.1
2024-04-26 16:49:52 -07:00
f311399c2f
Bumped Generated Version extension to 0.9.6-SNAPSHOT 2024-04-17 23:16:10 -07:00
7c1dec5c5e
Bumped Detekt extension to version 0.9.4-SHAPSHOT 2024-04-17 23:16:03 -07:00
a58dc67caf
Bumped commons-text to version 1.12.0 2024-04-17 23:06:29 -07:00
aa15e98d29
Added safety settings 2024-04-17 16:22:37 -07:00
6fca32451f
Bumped JaCoco extension version to 0.9.5 2024-04-12 12:54:50 -07:00
d150f079b8
Bumped VertexAI (Gemini) veresion to 1.1.0
Bumped Log4J version to 2.0.13
Bumpled UrlEncoder version to 1.5.0
2024-04-12 12:53:25 -07:00
3ae568a23b
Bumped workflow actions to latest version 2024-04-12 12:49:58 -07:00
b2aae15c79
Added support for VertexAI (Gemini) version 0.7.0 2024-03-24 17:06:53 -07:00
ee5b5ad11a
Added JDK 22 to workflow 2024-03-24 17:05:29 -07:00
0cf4a0a763
Bumped Guava to 33.1.0 2024-03-15 21:27:28 -07:00
b46b305c38
Bumped VertexAI (Gemini) to version 0.6.0 2024-03-10 00:08:32 -08:00
eea0eea5fa
Bumped Kotlin to version 1.9.23
Bumped Kotlin extension to version 0.9.3
2024-03-10 00:07:30 -08:00
cf0bafff94
Reworked the ChatGPT JSON request programmatically 2024-03-03 22:19:30 -08:00
7931e4adbe Bumped to bld 1.9.0 2024-02-26 17:01:30 -08:00
2a9bb44fec Added Root POM for Snyk 2024-02-25 21:32:58 -08:00
0d37c7b152 Added the Snyk custom POM 2024-02-25 21:24:16 -08:00
8aa4dcbcce Bumped Google Cloud VertexAI dependency to 0.4.0 2024-02-09 16:48:31 -08:00
26f1a2da1d Fixed Kotlin badge version number 2024-02-09 01:19:10 -08:00
69c18841bc Bumped depencendies (common-codec, org.json) 2024-02-09 01:14:52 -08:00
6da6783395 Minor cleanups 2024-02-05 18:07:57 -08:00
6c2338b8b6 Bumped depedencies 2024-02-05 17:42:48 -08:00
d371bf5a01 Bumped bld to 1.8.0 2024-01-31 15:55:32 -08:00
3c4e76e5b9 Updated copyright 2024-01-16 10:25:16 -08:00
c684332b9d Bumped to Kotlin 1.9.22 2023-12-24 12:11:11 -08:00
356f62990d Added support for ChatGPT 3.5 Turbo 2023-12-18 14:14:08 -08:00
a10104dd9d Added website link to README 2023-12-17 22:11:56 -08:00
4a4e702d9f Added Google Gemini module 2023-12-17 21:33:02 -08:00
8412a8c26d Removed snapshot repository 2023-11-26 00:43:44 -08:00
3a773f7d46 Added snapshots repository 2023-11-25 18:14:41 -08:00
e34ea334d6 Added detekt extension 2023-11-25 18:08:13 -08:00
44c1e8db3e Fixed bld-ci badge 2023-11-12 16:06:40 -08:00
a40d20458b Updated copyright 2023-11-12 14:19:50 -08:00
208f3a82d9 Ignored bin directory 2023-11-11 13:13:35 -08:00
f8de100dde Added missing env variables 2023-11-11 00:34:54 -08:00
c68c25aa95 Moved from Gradle to bld 2023-11-10 23:43:20 -08:00
1cd7c5a79e Upgraded to Kotlin 1.9.20 2023-11-01 22:10:50 -07:00
4c90870f4a Cleaned up code 2023-11-01 22:02:54 -07:00
d700aa06df Fixed SonarCloud code smells 2023-10-26 21:13:46 -07:00
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
abebca5079 Updated dependencies 2023-10-17 13:26:43 -07:00
8e37c3912a Improved feed reader testing 2023-10-17 13:26:24 -07:00
86b35874bf Using lorem-rss instead of my server for testing 2023-10-13 13:35:19 -07:00
105850990b Updated versions 2023-10-13 13:34:30 -07:00
5a3b1d3f19 Changed decimal formatting 2023-10-13 12:37:55 -07:00
b562b674a7 Updated dependencies 2023-10-13 12:37:20 -07:00
bc8bf6bf57 Added date format to currency converter response. 2023-10-04 08:55:48 -07:00
8b63846270 Added ExchangeRate-API enviornment variable 2023-09-22 04:21:24 -07:00
8fb872ad6f Switched to ExchangeRate-API 2023-09-22 03:06:08 -07:00
65fa55d51f Updated dependencies 2023-09-22 03:05:10 -07:00
c99debd740 Updated dependencies 2023-09-01 15:29:45 -07:00
2313d36584 Upgraded to Koltin 1.9.0 2023-07-06 10:23:47 -07:00
5834a23b7e Updated dependencies 2023-07-02 02:23:09 -07:00
d8291e2156 Added all keyword to seen command 2023-06-17 21:30:55 -07:00
66b8adb743 Upgraded to PircBotX 2.3.1 2023-05-23 08:31:51 -07:00
945c763768 Moved to JDK 17 for GitLab and BitBucket 2023-05-21 02:03:31 -07:00
1825b13a23 Disabled JDK 19 from CircleCI 2023-05-21 01:18:05 -07:00
e94b1aa97d Potential fix for CircleCI 2023-05-21 01:17:44 -07:00
37b4eb4343 Added default max token for ChatGPT 2023-05-21 00:56:47 -07:00
e57f80f9d9 Moved to JDK 17 2023-05-21 00:16:46 -07:00
207c1b7e02 Removed twitter module 2023-05-21 00:01:01 -07:00
c2c5f8beae Upgraded sonar plugin 2023-02-17 22:09:57 -08:00
db84691691 Upgraded to Gradle 8.0 2023-02-15 22:27:08 -08:00
d67cf4ace7 Minor cleanup 2023-02-15 22:26:01 -08:00
1d85a1c516 Disabled Twitter module by default 2023-02-03 00:58:16 -08:00
d9d5dd2e47 Updated to latest workflow actions 2023-02-01 02:37:39 -08:00
f06ba4a6f5 Added disabled modules and commands listing 2023-02-01 02:37:04 -08:00
1b55736ee1 Added Java distribution 2023-01-31 23:31:12 -08:00
a43d4e0b5d Updated workflow 2023-01-31 23:24:34 -08:00
6f3b84a7c0 Fixed potential resource leak 2023-01-31 22:03:33 -08:00
6ec39c6d6d Updated copyright 2023-01-29 00:46:48 -08:00
a1ea25ae74 Minor cleanup 2023-01-12 23:06:21 -08:00
c3d1930592 Added rate limit error 2023-01-12 23:06:07 -08:00
4fcdce5229 Added to no-ci group to avoid rate limits 2023-01-12 10:27:01 -08:00
66ca972b9b Minor cleanup 2023-01-12 00:59:37 -08:00
6894e05610 Added max-token property 2023-01-12 00:57:12 -08:00
8c13276556 Allowed longer response from ChatGPT 2023-01-05 17:07:01 -08:00
d9e5016689 Fixed nix3 IP 2023-01-04 03:00:07 -08:00
b20783a18e Added UrlEncoder library 2023-01-04 02:55:12 -08:00
7f7fd43b8d Added tweet and toot commands 2023-01-04 02:54:48 -08:00
db931f1f23 Added stumped response from ChatGPT 2022-12-13 23:14:52 -08:00
0fba4445f8 Removed unnecessary threading (ThreadedModule, etc.) 2022-12-10 10:19:24 -08:00
e510a77af1 Added tags to Mastodon post 2022-12-07 11:50:19 -08:00
2b2d046835 Fixed Mastodon auto-post 2022-12-06 15:38:14 -08:00
6fd59e9487 Implemented a SocialManager with support for posting to both Twitter and Mastodon 2022-12-05 23:50:16 -08:00
6a3caa84ce Cleanup 2022-12-04 17:38:59 -08:00
cef750497b Added ChatGPT API key variable 2022-12-04 17:14:14 -08:00
c2e11743c6 Implemented ChatGPT module 2022-12-04 16:14:03 -08:00
b6e1888e70 Fixed uptime months calculation 2022-11-21 10:13:44 -08:00
a2646ceb9f Switched back to PircBotX JitPack snapshot 2022-10-12 20:33:38 -07:00
c4cf7b10d5 Upgraded to Twitter4J 4.1 2022-10-12 20:04:29 -07:00
c24fcb8ef5 Cleaned up more tests 2022-10-04 12:56:04 -07:00
ae9e24cded Fixed unused imports 2022-10-03 11:13:16 -07:00
7d54bfe756 Cleaned up tests 2022-10-03 10:59:44 -07:00
ed971a4e7a Added seen count to info 2022-10-02 07:46:50 -07:00
c0f5a8bad3 Upgraded to Kotlin 1.7.20 2022-09-29 21:38:40 -07:00
2f7b98c064 Fixed URL encoding 2022-09-29 21:37:24 -07:00
acf56b2178 Cleaned up tests 2022-09-24 10:54:56 -07:00
9bb7b34c69 Switched to JokeAPI library 2022-09-24 10:54:39 -07:00
b9deb55de6 Misc. Cleanup 2022-09-19 01:37:36 -07:00
6e8726ea55 Moved to JokeAPI 2022-09-19 01:36:27 -07:00
c025117f44 Update last seen on public message 2022-09-18 23:34:38 -07:00
94dc07fb4f Moved to Geek-Jokes 2022-09-18 23:33:04 -07:00
951fdaa5f7 Reworked the URL reader to include the code and body text when an error is returned. 2022-09-18 23:31:49 -07:00
2a2ab39b5f Upgraded to Log4j2 2.19.0 2022-09-17 21:42:39 -07:00
f394362ce1 Switched to maven image 2022-09-17 13:18:00 -07:00
5f224edf6d Fixed deploy/release tasks 2022-09-17 12:37:37 -07:00
9b595490bd Exclude 'no-ci' test group with CI. Removed testAll. 2022-09-17 12:00:53 -07:00
646682e2a9 Added test groups 2022-09-17 10:48:30 -07:00
893d554136 Removed TestNG suites 2022-09-17 00:28:30 -07:00
cc6cd6aed3 Removed testAll from kover report 2022-09-16 21:44:10 -07:00
7581c26d59 Skip Google search tests with CI to preserve daily rate limit 2022-09-16 21:11:02 -07:00
40ee593c3b Added onQuit 2022-09-16 14:25:01 -07:00
f35313bf62 Seen is now keeping track of nicks using a TreeMap on various events (nick change, join, etc.) 2022-09-16 10:37:15 -07:00
145749408b Added secrets 2022-09-16 00:34:07 -07:00
29d73f20cf Updated dependencies and misc. cleanup 2022-09-16 00:03:49 -07:00
3ba2dfba4a Implemented module to query Wolfram Alpha 2022-09-16 00:01:00 -07:00
0880d53894 Added disabled modules/commands logging 2022-09-15 23:27:10 -07:00
3d49ebbd5f Implemented seen command 2022-09-15 21:43:14 -07:00
d5000fa3c1 Fixed missing commons dependencies 2022-09-14 01:55:27 -07:00
af839918a1 Switched to kotlinx-cli from Apache Commons CLI 2022-09-14 01:43:43 -07:00
aa0c3dd81c Cleaned up usage and README 2022-09-13 13:00:17 -07:00
3f7ed4792b Switched to CryptoPrice 1.0 2022-09-10 10:29:17 -07:00
d6c0b99869 Switched to PircbotX 2.4-SNAPSHOT 2022-09-04 09:52:55 -07:00
afece310d2 Fixed sonarqube/kover report location 2022-08-25 15:09:29 -07:00
5465baf59a Switched to JDK 18 for CIs 2022-08-25 15:08:53 -07:00
359e9d4b28 Updated dependencies 2022-08-25 10:29:53 -07:00
0aa2136fec Output convertion result as is 2022-08-15 09:52:41 -07:00
8e03eda655 Updated dependencies 2022-08-15 09:51:47 -07:00
2aa551bfcd Updated dependencies 2022-08-02 15:14:48 -07:00
d7d1f09f28 Load codes/symbols/currencies on init 2022-08-01 11:05:45 -07:00
bcdd8c10cf Added isError tests 2022-08-01 11:04:38 -07:00
c138971230 Code cleanup 2022-08-01 10:58:11 -07:00
55f279c9b1 Currency cleanup 2022-07-11 13:50:33 -07:00
78a0df8a8e Added support for CryptoPrice country codes 2022-07-11 07:39:28 -07:00
a18c15e172 Fixed pubdate 2022-07-11 07:35:21 -07:00
2eb1c314cf Changed "symbols" keyword to "codes" in CurrencyConverter 2022-07-10 23:14:49 -07:00
92634031a8 Current version running on #mobitopia 2022-07-10 14:30:14 -07:00
070d29c7dd Moved to exchangerate.host API for currency conversion 2022-07-10 14:05:29 -07:00
a33b8354b8 Updated dependcies 2022-04-21 23:57:51 -07:00
e1cc59449b Improved regex 2022-04-21 23:54:26 -07:00
c3763a1444 Added Google Analytic G4 code 2022-04-21 23:54:08 -07:00
eb02ede6a4 Added Kotlin version. 2022-04-01 20:05:45 -07:00
c5c1e939c0 Update to Kotlin 1.6.20 and Gradle 7.4.2 2022-04-01 20:01:23 -07:00
a90db36fe2 Games modules are restricted to one-line response. 2022-03-28 21:20:10 -07:00
a3eada1727 Added underline extension fnction. 2022-03-28 21:13:11 -07:00
7bda64b5de Changed to the Dice module to allow for specifying the number of dice and sides. 2022-03-27 22:45:26 -07:00
61248387d8 Simplified games output even more. 2022-03-27 13:37:16 -07:00
c26d5f53d2 Simplified games. 2022-03-27 12:35:55 -07:00
fa34f47dab Moved to JDK 18. 2022-03-23 11:58:18 -07:00
4972e8e5d8 Added random URLs to help with CIs. 2022-02-14 23:02:06 -08:00
7aaa46e9f4 Updated dependencies. 2022-02-14 22:40:06 -08:00
cbc69be517 Code cleanup and added test. 2022-02-14 22:39:24 -08:00
4abdb268ef Code cleanup. 2022-02-14 22:38:51 -08:00
ea40d71f14 Changed buildCmdSyntax to helpCmdSyntax 2022-02-14 22:37:34 -08:00
0dd02d7039 Added URL reader and encoder extension funtions. 2022-02-14 22:34:46 -08:00
25d7a74568 Added unescapeXml extension function. 2022-02-14 22:28:09 -08:00
fe6ddf267d Added toLinkLabel extension function. 2022-02-14 22:23:25 -08:00
0cf98c6ca4 Added PircBotX license. 2022-01-19 22:55:21 -08:00
8c13c44731 Merge branch '0.8' 2022-01-19 15:31:08 -08:00
adb7a8c692 Updated website docs. 2022-01-19 15:25:07 -08:00
881bd716b0 Added Names holding object to Addons. 2022-01-18 10:03:50 -08:00
a70f22d402 Changed Modules command to fetch data directly from the addons. 2022-01-16 18:32:28 -08:00
c99d2ce805 Updated dependencies. 2022-01-16 18:31:38 -08:00
e4dd6d5254 Added support for disabled-modules and disabled-commands properties. 2022-01-08 23:11:44 -08:00
12bc76406b Updated copyright and licenses. 2022-01-01 07:08:08 -08:00
dfc711b180 Updated dependencies. 2022-01-01 06:37:44 -08:00
bc2a427f48 Updated to Log4j 2.17. 2021-12-19 12:42:18 -08:00
2573c7d596 Upgraded to Gradle 7.3.2 2021-12-17 01:42:02 -08:00
8903d67e9c Added more tests. 2021-12-17 01:41:22 -08:00
99a27c2769 Upgraded to log4j 2.16.0 and Kotlin 1.6.10. 2021-12-17 01:37:06 -08:00
db8e1c198c Updated dependencies. 2021-12-05 22:58:27 -08:00
5dd1f89105 Added AddComment(EntryComment). 2021-12-05 22:57:58 -08:00
0e80f22b4f Added isEnabled function. 2021-12-05 22:57:33 -08:00
562adec177 Added more tests. 2021-12-05 22:56:36 -08:00
fd39c25c7d Cleanup. 2021-12-05 22:55:32 -08:00
db6f322ce5 Baseline update. 2021-11-28 23:39:05 -08:00
db1a1a9474 Removed jacoco.
Added isNonStable function for versions plugin.
2021-11-28 23:39:05 -08:00
54e6e6dd87 Cleaned up. 2021-11-28 23:39:05 -08:00
65e221a4f6 Improved IP address regex. 2021-11-28 23:39:05 -08:00
35d8be009e Switched to buildList/Map. 2021-11-28 23:39:05 -08:00
97a9fd1597 Added lastOrEmpty() extension function. 2021-11-28 23:39:05 -08:00
10f1ee8518 Cleaned up constructors. 2021-11-28 23:39:05 -08:00
4e1e09b069 Switched uptime to Duration API. 2021-11-28 23:38:59 -08:00
7c270ed872 Added more tests. 2021-11-17 08:05:45 -08:00
e462a70147 Reverted back to Jacoco reports for Sonarqube. 2021-11-16 22:16:17 -08:00
ede05c39df Upgraded to Kotlin 1.6.0.
Trying out Kover instead of Jacoco.
2021-11-16 22:08:38 -08:00
655889d2b9 Use filters instead of looping through all messages. 2021-11-16 22:07:31 -08:00
aab95fb040 Minor cleanups. 2021-11-16 22:04:41 -08:00
2963e747be Added more tests. 2021-11-16 22:02:45 -08:00
bc75d1eb73 Improved event null-checks. 2021-11-16 19:40:50 -08:00
ba9d79ce60 Converted colorize, bold, etc. to extension functions. 2021-11-16 10:46:22 -08:00
3ea0e4b3ac Reworked ModuleException. 2021-11-14 21:56:26 -08:00
29eae2e7ee Fixed unknown host test. 2021-11-14 15:41:38 -08:00
9b8caaa4a8 Updated to Gradle 7.3.
Bumped dependencies.
2021-11-14 15:40:59 -08:00
29b8888eca Avoid if-null Checks. 2021-11-14 15:38:38 -08:00
f1b50d741c Cleaned up messages classes. 2021-11-14 15:37:26 -08:00
8efb09cea8 Cleaned up tests. 2021-11-12 09:19:58 -08:00
0a6b84fa2b Switched to random extension function. 2021-11-12 09:19:14 -08:00
5dd8b36f92 Bumped CIs to Java 11 & 17. 2021-11-09 10:03:15 -08:00
f53f43082a Fixed incorrect bot nickname. 2021-11-09 10:00:35 -08:00
9fb870648e Moved to PircBotX and assertk. 2021-11-08 13:54:48 -08:00
2a46761dc5 Cleaned up tests. 2021-10-25 23:41:52 -07:00
611420757a Updated copyright. 2021-10-25 18:25:33 -07:00
95823db1d9 Improved sanitize function. 2021-10-25 18:25:05 -07:00
0d144d4b10 Added Sanitize function. 2021-10-25 13:16:59 -07:00
384331b287 Upgraded to Kotlin 1.6.0-RC. 2021-10-25 13:03:38 -07:00
22bf1cfed5 Clean up. 2021-10-25 13:02:57 -07:00
d7bdcd66d0 Update to Kotlin 1.5.31. 2021-10-04 14:34:38 -07:00
48b5c8a345 Converted all Thread() to coroutines. 2021-09-15 17:31:26 -07:00
25a0850b71 Now using coroutines in ThreadedModule. 2021-09-15 13:03:01 -07:00
f4c6bf48fa Trim command before processing private message. 2021-09-09 08:21:32 -07:00
6f575bf921 Fixed unnecessary JDK 16 only syntax. 2021-08-24 20:44:47 -07:00
e0a51d21f9 Revert "Fixed kapt daemon configuration for JDK < 16."
This reverts commit 1db47a0b22.
2021-08-24 20:41:58 -07:00
1db47a0b22 Fixed kapt daemon configuration for JDK < 16. 2021-08-24 19:04:51 -07:00
d130957c6f Dependencies updates. Kotlin 1.5.30. 2021-08-24 18:56:33 -07:00
c7961c2817 Added currency formatting. 2021-08-01 23:23:44 -07:00
d11f32189e Added separator parameter to sendList() function. 2021-08-01 23:23:14 -07:00
2784af626b Added more zones. 2021-08-01 14:36:25 -07:00
ef6c600dbc Added dice & cards emoji/unicode to games. 2021-08-01 00:52:20 -07:00
abd34bde80 Added more countries. 2021-07-31 14:24:49 -07:00
aab28b5979 Added capitalizeWords extension function. 2021-07-31 14:23:43 -07:00
79efd005d1 Fixed me keyword use for ops. 2021-07-30 18:33:56 -07:00
6f297a0d6b Fixed country code. 2021-07-30 18:33:09 -07:00
9f82690ec7 Sorted the currency rates. 2021-07-30 16:58:16 -07:00
1d15d669b1 Fixed country code lookup and added more tests. 2021-07-30 14:51:24 -07:00
d05499a76f Cleaned up and added test to messages. 2021-07-30 14:50:15 -07:00
00caee4bc1 Fixed colorize function. 2021-07-30 03:25:45 -07:00
04e88264cd Cleaned up and added more tests. 2021-07-30 02:53:38 -07:00
af9546e3d1 Cleanup. 2021-07-30 01:26:12 -07:00
1535290290 Implemented appendIfMissing and replaceEach extension functions to remove dependencies on StringUtils. 2021-07-30 01:19:31 -07:00
d8930a9520 Dependencies update. 2021-07-30 01:14:06 -07:00
5d90571843 Switched back to Java 1.8 compatibility. 2021-07-08 12:27:57 -07:00
663f7d682a Reverted to Kotlin 1.5.10. 2021-07-06 18:24:13 -07:00
a8a4500125 Updated dependencies. 2021-07-06 17:08:41 -07:00
7c2ad09ff1 Removed checkstyle, using IDEA default code format. 2021-06-18 21:31:40 -07:00
fdd1fb7e42 Updated dependencies. 2021-06-16 21:58:11 -07:00
05ef252bf7 Moved to irc.libera.chat. 2021-06-16 16:17:18 -07:00
e35d112b28 Cleanup. 2021-06-11 20:22:57 -07:00
b2dcf781c2 Added Gihub workflow matrix for Java 11 & 15. 2021-05-31 02:49:28 -07:00
3f628e58f0 Updated PMD rules. 2021-05-29 22:01:18 -07:00
e873d01338 Fixed Google search test for GitHub CI. 2021-05-28 11:37:25 -07:00
2c1ea56e79 Updated dependencies. 2021-05-28 11:29:39 -07:00
05b7ca8a41 Format cryptoprice as currency. 2021-05-25 18:10:44 -07:00
43615f253c Removed TravisCI. 2021-05-20 20:09:01 -07:00
1263160924 Switched to system-wide Gradle. 2021-05-20 18:09:42 -07:00
d2c0e12e1a Added Gradle caches setup and cleanup. 2021-05-19 20:18:32 -07:00
e4d3f3f2c4 Added GitHub token env. 2021-05-19 19:42:55 -07:00
b8c3bf9615 Added sonar.organization property. 2021-05-19 19:29:48 -07:00
30f2ef7273 Added Sonarcloud URL. 2021-05-19 19:23:38 -07:00
381887d937 Testing Sonarqube with GitHub CI. 2021-05-19 19:13:02 -07:00
98ed1d5042 Added Sonarcloud to GitHub CI. 2021-05-19 19:01:47 -07:00
9270f5f8b4 Removed Sonarcloud from TravisCI. 2021-05-19 18:43:20 -07:00
5b9d8911e1 Removed fetch on TravisCI 2021-05-19 18:24:56 -07:00
48c2ad65c0 Cleanup. 2021-05-18 23:48:25 -07:00
6644400a23 Added shudown() with associated Die and Kill commands. 2021-05-18 22:13:31 -07:00
484f11664e Added FeedReader tests. 2021-05-18 22:12:07 -07:00
082b430ee2 Cleanup. 2021-05-18 22:05:11 -07:00
8681dea66f Updated to Gradle 7.0.1 2021-05-16 07:58:06 -07:00
81cee7b00f Truncate UTC timestamp to seconds. 2021-05-15 12:50:49 -07:00
2de9dc66bd Added more Utils extensions. 2021-05-15 01:26:31 -07:00
8098a4855d Cleanup. 2021-05-14 21:46:23 -07:00
2e1c6e7732 Utils functions improvements. 2021-05-14 20:57:25 -07:00
790bd3159e Cleanup. 2021-05-13 21:37:16 -07:00
11a75a7179 Moved TwitterOAuth to Kotlin. 2021-05-13 19:26:52 -07:00
694cc119ed Removed spotbugs. 2021-05-12 19:03:14 -07:00
0d3dc268ca Fixed Google search test, again. 2021-05-11 17:51:52 -07:00
b98879bd7d Converted info command to Kotlin. 2021-05-11 17:51:24 -07:00
ad3a9907a3 Converted versions command to Kotlin. 2021-05-11 13:30:58 -07:00
a798800198 Cleaned up usage of the Utils class. 2021-05-11 12:42:46 -07:00
273ac60c7d Fixed CryptoPrices tests. 2021-05-11 01:47:41 -07:00
faf40d3048 Cleaned up tests. 2021-05-11 00:51:35 -07:00
22e29d5ce3 Converted ModuleExceptionTest to Kotlin. 2021-05-11 00:15:28 -07:00
56b8114b93 Cleanup. 2021-05-10 23:03:51 -07:00
eff93791d1 Reverted to JDK 15 on CircleCI. 2021-05-10 17:20:57 -07:00
ec049c7485 Updated to JDK >= 11 on CIs and switched to Gradle 7.0.1 2021-05-10 15:57:02 -07:00
f580f0f7f2 Implemented CryptoPrices (Coinbase API), replacing the Bitcoin module. 2021-05-10 15:55:29 -07:00
1f965a1833 BTC price output cleanup. 2021-05-04 23:41:00 -07:00
35399c3f78 Updated to jacoco 0.8.7 2021-05-04 23:11:19 -07:00
87cb58102a Only return BTC 15m, etc. if different from current price. 2021-05-04 23:10:47 -07:00
df7384570e Fixed formatting. 2021-05-04 21:58:49 -07:00
bf985d5626 Fixed Google search test. 2021-05-04 17:57:47 -07:00
bd14a1e15e Included currencies in help response. 2021-05-04 17:56:18 -07:00
c99210f624 Added Bitcoin module. 2021-05-04 01:03:33 -07:00
d6df365e4b Cleanup. 2021-05-03 17:14:19 -07:00
9f3dc273f0 Cleanup. 2021-05-01 21:46:33 -07:00
67f618da71 Updated detekt to 1.7.0-RC1 2021-05-01 13:42:12 -07:00
864bf99c8e Fixed detekt baseline. 2021-05-01 10:38:29 -07:00
b58cd6b11e Moved to OpenJDK 15.0.2 2021-04-29 20:22:39 -07:00
f92f7d26b1 Renamed ReleaseInfo.mustache to version.mustache.
Added deploy script.
2021-04-29 19:59:32 -07:00
8a945b2dc6 Switched to detekt snapshot for now. 2021-04-29 19:07:41 -07:00
2c78d713eb Using Jacoco snapshot.
Using src/main/java and src/main/kotlin.
2021-04-28 19:50:56 -07:00
b8cecdad1d Cleanup. 2021-04-28 17:37:05 -07:00
21cbecff8e Cleanup tests. 2021-04-28 08:23:14 -07:00
2f4e6bdb2d Cleaned up null-safety checks. 2021-04-27 18:00:51 -07:00
ae6220d421 Updated copyright. 2021-04-26 22:17:54 -07:00
8b8cbb39f8 Added Utils.capitalize() 2021-04-26 22:06:13 -07:00
7b2b496a94 Prevent detekt from from failing, for now. 2021-04-26 18:02:54 -07:00
3f75d60c5f Updated detekt baseline location. 2021-04-26 16:20:07 -07:00
aaf44db38a Upgraded to Kotlin 1.5.0 2021-04-26 15:23:21 -07:00
c950d7349a Updated dependencies. 2021-03-12 21:26:54 -08:00
844253f2bc Added onVersion. 2021-03-11 18:16:37 -08:00
6b5e8ab1ff Fixed tests. 2021-03-11 18:16:17 -08:00
8815cde78f Reverted to using with(x) 2020-12-08 15:11:12 -08:00
e825f0e658 Version 0.8.0-beta+411 2020-12-08 14:30:07 -08:00
d33210c594 Cleanup. 2020-12-08 14:29:51 -08:00
19894dce1f Changed with(x) to x.apply 2020-12-08 12:29:47 -08:00
aaecc8a9b4 Added addons.help() 2020-12-08 12:17:38 -08:00
4b52ab8c28 Version 0.8.0-beta+399 2020-12-08 01:40:29 -08:00
629e26b292 Cleanup. 2020-12-08 01:40:09 -08:00
e01de36909 Improved sendList() 2020-12-08 01:39:19 -08:00
7146bfcc60 Improved helpFormat() 2020-12-08 01:34:02 -08:00
d5634d7418 Version 0.8.0-beta+372 2020-12-07 01:34:32 -08:00
a0530a8dc2 Cleanup. 2020-12-07 01:34:11 -08:00
f9edff4813 Added addons.exec() and addons.match() functions.
Converted TellMessagesMgr and EntriesMgr to objects.
2020-12-07 01:33:59 -08:00
b24c0ebe54 Version 0.8.0-beta+361 2020-12-06 16:02:47 -08:00
1c2234a9a2 Added Debug command.
Converted Utils classes to objects.
2020-12-06 16:02:31 -08:00
f6656f1166 Version 0.8.0-beta+350 2020-12-06 02:39:36 -08:00
250c52b7d5 Reverted Tell and Twitter initializations to the init stage. 2020-12-06 02:39:24 -08:00
625ef1368c Updated baseline. 2020-12-06 02:00:36 -08:00
b109ce2de5 Version 0.8.0-beta+346 2020-12-06 01:49:37 -08:00
5a831f2c7c Switched to MutableList vs ArrayList whenever possible.
Made sure logging level is enabled before logging.
2020-12-06 01:49:02 -08:00
ece6ae98a0 Converted ArrayList to List (tokenizer, etc.) whenever possible. 2020-12-05 14:45:43 -08:00
5a669601da Replace java string functions with kotlin's. 2020-12-04 23:39:58 -08:00
69441f7006 Converted Mobibot class to Kotlin. 2020-12-04 23:11:39 -08:00
a44b0c1f49 Version 0.8.0-beta+305 2020-12-04 15:50:03 -08:00
92e703b68a Convert Tell Message Manager to Kotlin. 2020-12-04 15:49:44 -08:00
274c711dc2 Version 0.8.0-beta+302 2020-12-04 03:06:19 -08:00
8178744f85 Fixed typo. 2020-12-04 03:05:52 -08:00
0e8db3440f Optimized Links Manager. 2020-12-04 01:44:16 -08:00
2d24f5fc97 Switched to buffered output stream for stdout/stderr. 2020-12-04 01:40:20 -08:00
ca2939629f Version 0.8.0-beta+287 2020-12-02 22:59:08 -08:00
fb05647b7b Added debug arg on run. 2020-12-02 22:58:42 -08:00
7759e278e8 Converter Entry Links manipulation classes to Kotlin. 2020-12-02 22:57:25 -08:00
310ffb91da Version 0.8.0-beta+234 2020-12-02 14:21:22 -08:00
d83ce652e7 Cleanup. 2020-12-02 14:20:53 -08:00
550e7a0bfb Version 0.8.0-beta+219 2020-12-02 01:49:01 -08:00
9c1ab833da Converted modules to Kotlin. 2020-12-02 01:48:19 -08:00
fa4457a6f6 Version 0.8.0-beta+125 2020-12-01 00:58:21 -08:00
3bd66fb1c4 Cleanup. 2020-12-01 00:57:35 -08:00
549810b4bb Updated dependencies. 2020-12-01 00:56:52 -08:00
44de253040 Upgraded to Kotlin 1.4.0. 2020-08-17 14:30:24 -07:00
d7bfd70fa9 Upgraded to Kotlin 1.4.0-rc 2020-08-09 21:07:05 -07:00
8cd309e3a3 Updated dependencies. 2020-08-04 15:15:41 -07:00
70d99a028d Added try-with-resources. 2020-08-04 15:06:56 -07:00
94871a4df8 Fixed CI_NAME env. 2020-07-26 17:28:48 -07:00
6d556afa40 Moved env to test step. 2020-07-26 16:42:01 -07:00
9552dd1373 Added env secrets. 2020-07-26 16:34:12 -07:00
71a3bb4dba
Move env section. 2020-07-26 16:15:18 -07:00
ec066d6298
Fixed push, etc., again. 2020-07-26 16:07:48 -07:00
fd9a5f83fe
Fixed push. 2020-07-26 16:04:42 -07:00
64d2328618 Added BitBucket and GitLab CIs.
More code cleanup.
2020-07-26 02:13:01 -07:00
c65204414d Updated dependencies. 2020-07-21 17:58:11 -07:00
aea73acce5 Reworked info command. 2020-07-21 17:57:58 -07:00
62417e76f7 Updated dependencies. 2020-07-15 18:34:33 -07:00
8b4b0d7dd1 Cleanup. 2020-07-11 18:32:57 -07:00
044f1b85b7 shutdown on autoPost only. 2020-07-11 18:32:30 -07:00
1749a081de Updated dependencies. 2020-07-11 18:29:46 -07:00
52c5e2dba7 Cleanup. 2020-06-20 20:21:56 -07:00
8f35d050df Removed okhttp3 dependency, using Utils.readUrl() isntead. 2020-06-20 17:09:58 -07:00
875269f5a6 Added Utils.encodeUrl() 2020-06-20 11:09:21 -07:00
8d33ddc252 Fixed copyright. 2020-06-20 11:07:51 -07:00
6b615cf141 OpenJDK 11.0.7 for CircleCI. 2020-06-19 19:04:59 -07:00
c88be2b4e5 JDK 11 min requirements because of LTS. 2020-06-19 18:36:15 -07:00
dcd6996c39 Updated dependencies, wrapper, etc. 2020-06-19 14:20:33 -07:00
b729eb2729 Moved Pinboard to kotlin and added tests. 2020-06-19 14:19:23 -07:00
d6a85ef4af Cleaned up msg. 2020-06-13 03:27:50 -07:00
d843c65f6f Updated dependencies. 2020-06-13 02:04:04 -07:00
ea21cd5383 Updated dependencies. 2020-05-19 00:00:02 -07:00
6c394c373d Fixed missing property initialization. 2020-05-10 21:25:06 -07:00
2461504888 Updated Gradle. 2020-05-01 22:57:51 -07:00
eecc2f093f Fixed bug in setProperty where the wrong constant was used. 2020-05-01 22:57:17 -07:00
b55bfb45b7 Updated dependencies. 2020-04-30 18:18:42 -07:00
8bc04b0940 Renamed UrlMgr to LinksMgr. 2020-04-30 18:18:20 -07:00
725937bf61 Cleanup. 2020-04-29 11:52:28 -07:00
1a5ae72d6e Added urlReader() method. 2020-04-29 11:52:03 -07:00
6787b0dcbe Updated PMD version. 2020-04-29 11:51:22 -07:00
5c3b2074ba Added Addons to handle adding commands & modules and related properties.
Commands now have their own properties and are initialized with the bot instance.
2020-04-28 21:01:18 -07:00
e2faa55c9f Gradle upgrade. 2020-04-28 20:52:30 -07:00
aba2633dc4 Cleanup. 2020-04-27 23:19:16 -07:00
34636ea9f9 Added ChannelFeed command. 2020-04-27 23:18:30 -07:00
bcf659c5a8 Updated dependencies. 2020-04-27 23:16:14 -07:00
e022bc90ff Updated dependencies. 2020-04-16 16:10:07 -07:00
c9366d856f Fixed title parsing. 2020-04-16 15:54:02 -07:00
fc35b6bfc8 Changed sendCommandsList to sendList. 2020-04-16 15:40:30 -07:00
b73ffc061d Added source & traget compatibility. 2020-04-01 20:31:14 -07:00
b99a2f568e Fixed defaultTags. 2020-04-01 20:00:51 -07:00
4048636696 Converted Message to Kotlin. 2020-04-01 17:38:22 -07:00
bde70343b7 Added toString() 2020-04-01 11:12:43 -07:00
2ffa5f29b9 Fix for Java 9 compatibility (isBlank) 2020-03-31 22:56:27 -07:00
e3cbc4e808 Cleanup. 2020-03-31 22:44:17 -07:00
df38680226 Tags are now set in lists. 2020-03-31 22:36:08 -07:00
2067a228aa Fixed twitter autopost initialization (was too early.) 2020-03-31 22:35:34 -07:00
d2339044e6 Added helpFormat. 2020-03-31 22:34:35 -07:00
559634fbfe Converted Tell to an actual command. 2020-03-31 22:30:09 -07:00
37f3c49413 Added Utils.botCommand(). 2020-03-30 21:59:23 -07:00
0ec1e75106 Made Tell an actual command. 2020-03-30 21:58:54 -07:00
d9b1cbceff Cleanup. 2020-03-30 20:11:17 -07:00
cfdbfca0a2 Using StringUtils upper/lowerCase(). 2020-03-30 18:00:57 -07:00
30b7a80c49 Added response on no matches. 2020-03-30 18:00:25 -07:00
9da2638475 Cleanup. 2020-03-30 17:14:06 -07:00
b0b881e22b Added AddLog command. 2020-03-30 17:13:49 -07:00
08260a632b Fixed generic exception catching. 2020-03-30 15:42:34 -07:00
1035f5ba05 Updated tests. 2020-03-30 15:42:07 -07:00
968823828a Cleanup. 2020-03-30 15:41:48 -07:00
ced0aa97f8 Fixed isPrivate() usage. 2020-03-30 15:40:50 -07:00
07ab869388 Reworked. 2020-03-30 15:40:07 -07:00
0fda50b4e1 Reworked. 2020-03-30 15:39:55 -07:00
89eac6b025 Fixed isPrivate() and bold() usage. 2020-03-30 15:38:43 -07:00
363a7cda40 Fixed convert2Diamond. 2020-03-30 15:31:58 -07:00
b7a0072db5 Updated dependencies. 2020-03-30 15:27:00 -07:00
fbe36d50b7 Removed complexity (detekt) 2020-03-29 00:44:10 -07:00
02fae4d8e4 Added matches(). 2020-03-29 00:42:02 -07:00
4aeb17ecef Trying openjdk14 and oraclejdk9. 2020-03-28 17:39:52 -07:00
6bf2d6fdb1 Updated to jdk 9 & 14, maybe. 2020-03-28 17:29:35 -07:00
f16508dae4 Removed unecessary breaks. 2020-03-28 17:27:44 -07:00
887ab8c959 Cleanup. 2020-03-28 15:27:49 -07:00
78260381cf Cleaned up send() in commands. 2020-03-28 15:02:18 -07:00
abbb322b5d Added setCommandsList method. 2020-03-28 15:00:56 -07:00
9b2dc8587f detekt & spotbugs cleanup. 2020-03-28 13:17:07 -07:00
f7e2651619 Reworked versions command. 2020-03-28 13:15:28 -07:00
4b95b0bbe2 Version 0.8 starts. 2020-03-28 11:31:52 -07:00
0d913eca4d Only show twitter count to ops. 2020-03-25 00:48:45 -07:00
e0d1919808 Fixed redundant method call. 2020-03-25 00:40:15 -07:00
a435f0be49 Cleanup. 2020-03-25 00:20:15 -07:00
68ddcd1ccc Added tags keywords. 2020-03-25 00:19:52 -07:00
72961dadc9 Added twitter timer to allow for links editing, etc. 2020-03-24 22:24:51 -07:00
5bf6901ce2 Reworked using enum class. 2020-03-24 17:43:48 -07:00
a381b06a0a Added command to list enabled modules (op). 2020-03-23 23:22:57 -07:00
2f50c6c1c3 Reworked RockPaperScissor modules with actions and colors. 2020-03-23 23:05:18 -07:00
c078a51ebf Cleanup, copyright, etc. 2020-03-23 13:17:18 -07:00
fd6c1309e3 Adeed automatic posting of channel links to Twitter. 2020-03-23 12:25:59 -07:00
92576f9496 Implemented Rock Paper Scissors module in Kotlin. 2020-03-23 05:53:11 -07:00
d8da21b0ef Updaded dependencies. 2020-03-23 05:50:59 -07:00
c261c48931 Code format. 2020-03-18 18:26:55 -07:00
3a6d2d1071 Fixed logging messages. 2020-03-18 18:26:26 -07:00
fa2eb27a1a Changed Object to Element. (sonarcloud) 2020-03-18 18:24:03 -07:00
b4345015c3 Fixed jar manifest building (compile to implementation side effect.) 2020-03-18 16:11:24 -07:00
4aa8cc2df6 Prevent XML External Entities vulnerability in CurrenctyConverter module. 2020-03-18 15:47:51 -07:00
acc7c42112 Updated dependencides for Java 14. 2020-03-18 15:25:41 -07:00
17aa4f4bd6 Cleanup. 2020-03-17 18:33:42 -07:00
93b40fae55 Keep Java 8 compatibility. 2020-03-17 18:33:28 -07:00
f8834501e7 Removed IDEA ipr. 2020-02-11 00:35:04 -08:00
4877c7ab12 PMD fixes. 2020-02-10 23:46:37 -08:00
12a1655d3f Always output minutes in uptime(). 2020-02-10 23:45:08 -08:00
fffc51ca15 Sanitized error messages. 2020-02-10 23:01:50 -08:00
5a39d3ee23 Update dependencies. 2020-02-10 23:00:23 -08:00
78808c0f15 Updated wrapper. 2020-02-10 22:59:26 -08:00
0c32333c75 Added uptime(). 2020-02-10 22:57:13 -08:00
e74b87d371 Now using StringUtils. 2020-02-10 22:52:07 -08:00
5a40c1886e Added more examples. 2019-09-13 16:32:12 -07:00
f9d86c3cf0 Cleanup. 2019-09-13 16:28:24 -07:00
330bdb2a2d Version 0.7.3-beta+526 2019-09-13 12:37:07 -07:00
ec8d4754e4 Changed validateJsonResponse() to getJsonResponse(). 2019-09-13 12:36:44 -07:00
9c4eaa6cff Version 0.7.3-beta+519 2019-09-13 01:37:47 -07:00
d7e1cf9132 replace(string, string) to replace(char, char) [spotbugs] 2019-09-13 01:37:22 -07:00
4ccdcb95c3 Changed isValidJsonObjec()t to validateJsonResponse() 2019-09-13 01:24:56 -07:00
2166e166e8 Changed replaceAll() to replace() (sonarqube) 2019-09-13 01:23:48 -07:00
f161ac2e79 Version 0.7.3-beta+515 2019-09-13 01:01:53 -07:00
2775cca3aa Added keywords symbol lookup. 2019-09-13 01:01:17 -07:00
8931405ee9 Updated dependencies. 2019-09-13 01:00:50 -07:00
c0ba4cefd5 Version 0.7.3-beta+499 2019-09-09 01:09:35 -07:00
1cabb74eb8 Workaround for API change for invalid symbol. 2019-09-09 01:09:00 -07:00
8484e2fc0c Updated dependencies. 2019-09-09 01:08:01 -07:00
44e8d91603 Cleanup. 2019-07-30 15:46:47 -07:00
e6ced56e1b Switched to com.mebigfatguy.sb-contrib. 2019-07-29 11:57:40 -07:00
349ed0e671 Cleanup. 2019-07-29 11:32:50 -07:00
167670c86e Cleanup. 2019-07-29 11:19:08 -07:00
0e04a40a76 Cleanup tests. 2019-07-29 10:50:09 -07:00
65dcbcc4e3 Reworked exception testing. 2019-07-29 10:49:19 -07:00
65b61aa5a3 Added TellMessage tests. 2019-07-29 10:48:19 -07:00
6a1b3976ed Version 0.7.3-beta+471 2019-07-28 23:14:19 -07:00
34c7adddff Added country to invalid city ID search. 2019-07-28 23:13:47 -07:00
351f117d38 Fixed CI issues. 2019-07-28 17:00:27 -07:00
b73e9597c1 Version 0.7.3-beta+468 2019-07-28 16:22:38 -07:00
9a95980e4c Cleanup deploy tasks. 2019-07-28 16:20:52 -07:00
b8539a7295 Handled invalid city ID. 2019-07-28 15:58:00 -07:00
106accdcf5 FindBugs false positive suppression. 2019-07-28 15:57:28 -07:00
2d3d13f360 Updated dependencies. 2019-07-28 15:56:48 -07:00
be9a146440 Added toString method. 2019-07-28 15:27:06 -07:00
2dc206dadb Gradle 5.5.1 update. 2019-07-28 15:24:01 -07:00
c276c8f42c Version 0.7.3-beta+450 2019-05-27 00:08:52 -07:00
47e7ab38dd Dependencies update. 2019-05-27 00:08:21 -07:00
19898d2c1c Code cleanup. 2019-05-27 00:08:05 -07:00
43e31ddf63 Added twitterNotification method. 2019-04-27 20:30:12 -07:00
8976686286 Temporarily using mobibot.mustache to fix CI until Semver 1.2.0 is out. 2019-04-27 03:52:14 -07:00
af090e7940 Cleanup. 2019-04-27 03:27:03 -07:00
82f4cf7cfb Fix for CI. 2019-04-27 03:26:43 -07:00
da85ecfeb2 Semver 1.2.0 is not out yet. 2019-04-27 03:15:54 -07:00
0ed3207a31 Added PMD.
Updated dependencies.
2019-04-27 03:08:49 -07:00
ad4701060d PMD cleanup. 2019-04-27 03:07:25 -07:00
7e16f1cb3f Used variable instead of repeat literal strings. (PMD) 2019-04-27 03:06:37 -07:00
f4afbcaaa5 Added locale. (PMD) 2019-04-27 03:04:40 -07:00
7f06e8b348 Made sure logger is enabled before logging errors/warnings. (PMD) 2019-04-27 03:02:52 -07:00
f6234f6db3 Removed uneccesary initialization. (PMD) 2019-04-27 02:59:52 -07:00
8e78731924 Made logger static. (PMD) 2019-04-27 02:59:31 -07:00
ae02320478 Using ConcurrentHashMap (PMD) 2019-04-27 02:58:59 -07:00
612c358d26 Moved variable outside for-loop (PMD) 2019-04-27 02:58:31 -07:00
eec6741a2f Combined append calls (PMD) 2019-04-27 02:57:36 -07:00
214180491f Added missing @Override (PMD) 2019-04-27 02:56:33 -07:00
e785fd6852 Removed unecessary variable (PMD) 2019-04-27 02:56:17 -07:00
063e23358b Added default constructor and javadoc. 2019-04-27 02:55:00 -07:00
5417bc1717 Removed generic exceptions (PMD) 2019-04-27 02:54:16 -07:00
1ba412d1f0 Added call to super() in constructor (PMD) 2019-04-27 02:53:30 -07:00
bc4399f798 Added private constructor (PMD) 2019-04-27 02:51:06 -07:00
1d7f8eb86b Added default locale (PMD) 2019-04-27 02:50:47 -07:00
bd9bb8d47e Suppress Warnings (PMD) 2019-04-27 02:43:16 -07:00
be0c1c4cd4 Repeat string to variables (PMD) 2019-04-27 02:37:45 -07:00
bb23d7e79d Using List instead of ArrayList (PMD) 2019-04-27 02:37:21 -07:00
c3d4eb1ab8 Added PMD ruleset. 2019-04-27 02:27:08 -07:00
59626b1d94 Spotbugs JDK 8 cleanups. 2019-04-20 06:24:53 -07:00
bae9c82ba8 Spotbugs cleanups. 2019-04-20 05:38:38 -07:00
c016b92db0 Flipped equals checks against literal values. 2019-04-20 05:38:05 -07:00
86ca904c9e Implemented getChannelName(). 2019-04-20 05:35:20 -07:00
a43ef4f0e3 Improved dealing with ignored nicks. 2019-04-20 05:30:44 -07:00
57a02f9ffb spotbugs cleanup. 2019-04-20 05:27:41 -07:00
0732a0ff91 Now using an unmodifiableMap. 2019-04-20 05:27:25 -07:00
ee7111d91d Now using java.nio newOutputStream and newInputStream. 2019-04-20 05:26:21 -07:00
48a6c29fc9 Reworked deleting old message using removeIf instead of in a loop. 2019-04-20 05:22:06 -07:00
7ff30c1ce8 spotbugs cleanups. 2019-04-20 05:20:42 -07:00
e5398d73ec Added repeat versions variables. 2019-04-20 05:15:06 -07:00
8047266f13 Cleanup. 2019-04-19 23:39:24 -07:00
f38f9ce74e Added tests for EntryLink. 2019-04-19 22:56:33 -07:00
6518969031 Cleanup. 2019-04-19 22:55:43 -07:00
72dce163e9 Moved CONNECT_TIMEOUT to Constants. 2019-04-19 22:55:14 -07:00
8e8e530181 Cleanup. 2019-04-19 21:02:54 -07:00
8f408d1f46 Added twitter notification on join. 2019-04-19 21:02:01 -07:00
474a31bdee Created tell and entries packages and Constants class. 2019-04-19 20:59:51 -07:00
7cede1d560 Dependencies update. 2019-04-17 00:23:46 -07:00
90af2d9f6e Fixed missing semicolon. 2019-04-17 00:23:25 -07:00
64ffd95aba Checkstyle fixes. 2019-04-17 00:23:02 -07:00
7c724db67e Cleanup. 2019-04-14 19:05:02 -07:00
316061e69b Renamed. 2019-04-14 19:04:41 -07:00
8bbeb8d7c8 Better query parameters handling in getSanitizedMessage(). 2019-04-14 19:04:11 -07:00
4b772f0564 Cleanup. 2019-04-13 04:50:41 -07:00
d08f9a2d0f 0.7.3-beta+26 2019-04-10 00:50:12 -07:00
3f5d011719 Fixed command response, no args. 2019-04-10 00:48:37 -07:00
6460976a9c 0.7.3-beta+260 2019-04-10 00:20:10 -07:00
32e827d50a Fixed public messages. 2019-04-10 00:18:27 -07:00
a4907ce111 Implemented new send methods. 2019-04-09 23:04:38 -07:00
2b4f1af63c Don't colorize Colors.NORMAL. 2019-04-09 23:03:58 -07:00
9b2866e30c Code cleanup. 2019-04-09 23:03:45 -07:00
07944f6530 Implemented PrivateMessage class. 2019-04-09 23:01:42 -07:00
723e5d712c Code cleanup. 2019-04-09 15:59:41 -07:00
76e7651f7c Improved tests. 2019-04-09 15:59:13 -07:00
b1641eba06 Added send method with color parameter. 2019-04-09 15:58:48 -07:00
70f6781e56 Now extends ThreadedModule 2019-04-09 15:58:13 -07:00
0ce160c905 Added new constructor. 2019-04-09 15:57:03 -07:00
bdf0ca3006 Reworked and added test. 2019-04-09 15:56:21 -07:00
518703b826 Added colorize method. 2019-04-09 15:55:45 -07:00
f5863f88ac Added color property. 2019-04-09 15:55:32 -07:00
3a2954b2cf Reworked and added tests. 2019-04-09 15:55:02 -07:00
2d5fc4c0cb Improved tests. 2019-04-09 02:33:07 -07:00
799cf697d4 Implemented GoogleSearch tests. 2019-04-09 02:32:40 -07:00
8843d2cfa6 Implemented tests for ModuleException. 2019-04-09 02:32:15 -07:00
43ba8e3774 Implemented LocalProperties for testing. 2019-04-09 02:31:47 -07:00
844507ea9e Code cleanup. 2019-04-09 02:30:01 -07:00
3def574940 Implemented googleSearch method for easier testing. 2019-04-09 02:29:17 -07:00
d85624b067 Improved the AbstractMoudule. 2019-04-09 02:28:09 -07:00
8c2c351222 Added method to get a sanitized message. 2019-04-09 02:24:49 -07:00
56b54912b3 Code cleanup. 2019-04-09 02:24:15 -07:00
34028479e8 Added cyan method. 2019-04-09 02:22:09 -07:00
614e45ab63 ErrorMessages now set the notice flag to true. 2019-04-09 02:21:42 -07:00
1ea99bc622 Added TestNG config. 2019-04-09 02:20:20 -07:00
267b858cbd Re-enabled SpotBugs. 2019-04-08 09:54:42 -07:00
7085f3a294 Renamed PrivateMessage to NoticeMessage. 2019-04-08 09:54:15 -07:00
dabdf9ae34 Renamed to NoticeMessage. 2019-04-08 09:53:29 -07:00
f18fab2d67 Misc IDEA files updates. 2019-04-08 01:45:32 -07:00
9c9547a75e Version 0.7.3-beta172 2019-04-08 01:44:58 -07:00
c114473368 Fix UTF-8 encoding. 2019-04-08 01:43:57 -07:00
21ec7b9526 Added Alpha Advantage key. 2019-04-08 01:43:12 -07:00
07af8b2957 Removed ostermiller utils. 2019-04-08 01:42:44 -07:00
24a7d5ad56 Added more tests. 2019-04-08 01:42:17 -07:00
d592536aca Added more tests. 2019-04-08 01:41:59 -07:00
1d7fcbd6ad Spacing fix. 2019-04-08 01:41:14 -07:00
df6567ad1c Switched to Alpha Avantage API, created test. 2019-04-08 01:40:28 -07:00
4b0ef573bc Added tests. 2019-04-08 01:39:50 -07:00
59869fcdc3 Changed message to debugMessage, trimmed constructors. 2019-04-08 01:39:18 -07:00
0d716b0bb3 Adeed WorldTime module tests. 2019-04-07 16:33:32 -07:00
1bbc710897 Fixed names. 2019-04-07 16:32:34 -07:00
8f5860af35 Added tests for the Joke module. 2019-04-07 15:40:40 -07:00
e3e11c7998 Added ModuleException class. 2019-04-07 15:40:13 -07:00
03b932d502 Added tests. 2019-04-07 14:46:45 -07:00
e77ccf3211 Added test for AbstractModule classes. 2019-04-07 14:46:19 -07:00
4e26666823 Added Message classes to facilitate testing modules. 2019-04-07 14:44:20 -07:00
4e21123820 Added tests. 2019-04-07 02:03:32 -07:00
015c8fcd14 Print no increment on CIs. 2019-04-07 01:27:21 -07:00
6fe36dbe8e Updated copryright. 2019-04-07 01:27:00 -07:00
d04ed1a6ab Don't increase build meta on CIs. 2019-04-07 01:05:26 -07:00
ecfba4720e Added recap size to info response. 2019-04-07 00:24:46 -07:00
5d42c3eb3f Fixed recap. 2019-04-07 00:24:21 -07:00
398f4559cf Reverted to the old way of redirecting stderr and stdout. The try-resource method was closing the stream. 2019-04-07 00:23:48 -07:00
95899c2840 Reverted to using a lib directory, the fatjar was causing problems with log4j not finding the configuration file. 2019-04-07 00:22:58 -07:00
be94c6ebbf Updated licenses. 2019-04-05 22:01:28 -07:00
53f0f7df8c Fixed jacoco reports. 2019-04-03 23:34:06 -07:00
2918c48a3e Removed kobalt. 2019-04-03 13:43:29 -07:00
cb70995f08 Added sonarcloud, jacoco and now using a fatjar. 2019-04-03 13:36:20 -07:00
d4e9121ca6 Added ThreadedModule abstract class. 2019-04-03 13:34:13 -07:00
fbcad6e611 Removed kobalt. 2019-04-03 11:31:12 -07:00
b68048a2af Added sonar.projectKey to build.grade. 2019-04-02 11:20:29 -07:00
dcc21a5544 Fixed unexpected end of file. 2019-04-02 10:43:52 -07:00
d86f84583c Added GitHub token. 2019-04-02 10:35:52 -07:00
2088a07ab5 Added check for pull request. 2019-04-02 09:47:10 -07:00
ed81885af6 Added sonar.organization. 2019-04-02 09:38:02 -07:00
dfee57d411 Call sonarqube after success. 2019-04-02 09:19:54 -07:00
61827e731a Execute sonar-scanner after install. 2019-04-01 23:08:56 -07:00
13fbd3d7f2 Only execute sonar scanner once. 2019-04-01 22:42:10 -07:00
05c043c3ac Added sonarcloud. 2019-04-01 22:24:13 -07:00
c6766941a3 Updated wrapper. 2019-04-01 22:09:52 -07:00
74b5c4fcc9 Changed to openjdk12. 2019-04-01 22:07:34 -07:00
6d3e3f2c6e sonarcloud code improvements. 2019-04-01 21:59:23 -07:00
20ff7ed62b Dependencies update. 2019-04-01 21:57:31 -07:00
06c8217ab1 Removed JDK9 and JDK10, added JDK12. 2019-04-01 18:45:43 -07:00
e16a58be08 Added JDK12, remove JDK9 and JDK10. 2019-04-01 18:40:54 -07:00
09ab2d5f8e Updated for semver 1.2.0. 2019-04-01 17:43:10 -07:00
2a9eccc632 Using OpenJDK 10, Oracle JDK 10 is deprecated. 2018-10-31 15:51:24 -07:00
c70fbc331f Updated deps. 2018-10-31 15:46:08 -07:00
76f7212672 Added JDK 11 to CIs 2018-10-31 15:45:27 -07:00
35f9fec5a9 Fixed JDK 8 in CircleCI. 2018-07-14 16:58:18 -07:00
30adb67fed Added JDK 10 to CIs. 2018-07-14 16:53:15 -07:00
f0faf1fc02 Fix for CIs. 2018-07-14 16:16:22 -07:00
92fd9c5b0d Fix for CIs. 2018-07-14 16:09:19 -07:00
71e70884ce Fix for CIs. 2018-07-14 15:54:36 -07:00
3011075f9c Fix for CIs. 2018-07-14 15:12:49 -07:00
a99eb5d5f6 Updated deps. 2018-07-14 15:08:02 -07:00
406de816cd Version 0.7.3-beat+006 now running on #mobitopia. 2018-07-14 00:47:47 -07:00
9c8a2a61dd Implemented new version of OWM. 2018-07-14 00:46:10 -07:00
290bf5cf93 Misc. updates (whitespace, editorconfig, IDEA, etc.) 2018-07-13 01:09:09 -07:00
f501e6c073 Added spotbugs settings & annotations. 2018-07-13 00:46:38 -07:00
2dc748be75 Added UTF-8 encoding to intput / output streams. 2018-07-13 00:36:07 -07:00
e953f1962e Now using SecureRandom. 2018-07-13 00:29:53 -07:00
8c3d850f54 Fixed whois test. 2018-07-13 00:29:01 -07:00
7db6d76eea Now using SecureRandom. 2018-07-13 00:28:34 -07:00
ec753fdbd6 Added vcs. 2018-07-07 23:37:01 -07:00
47b5ebc462 Updated dependencies. 2018-06-25 13:43:40 -07:00
545b682035 Fixed badges. 2018-06-18 19:27:32 -07:00
3e4700edfc Added snyk badge. 2018-01-16 20:49:10 -08:00
c0893eec5d Added Gemnasium badge. 2018-01-16 17:43:38 -08:00
a9d5fe74f3 Kobalt 1.0.100update. 2018-01-16 17:40:40 -08:00
8941f9f636 Moved to Gemnasium since VersionEye is shutting down. 2018-01-16 17:40:13 -08:00
a375af1352 Dependencies updates. 2018-01-16 17:39:20 -08:00
b1ff19ac20 Updated copyright. 2018-01-16 17:37:59 -08:00
6128a3d8c9 Renamed jobs. 2017-11-06 19:20:40 -08:00
987a8f9d2f Split Kobalt & Gradle workflow jobs. 2017-11-06 19:18:21 -08:00
46768519e7 Fix jdk 9 build. 2017-11-06 19:11:45 -08:00
81a36cdf46 Added JDK 9 build configuration. 2017-11-06 18:55:29 -08:00
f8f4995ad9 Gradle wrapper update. 2017-11-06 18:55:13 -08:00
5c224b4723 Added defaults. 2017-11-06 11:56:16 -08:00
4fea576345 More workflow fixes. 2017-11-06 11:49:53 -08:00
0a7b56a46f Fix workflow. 2017-11-06 11:44:55 -08:00
fa54c5beff Added workflow to build both in Gradle and Kobalt. 2017-11-06 10:45:19 -08:00
2b84150c00 Ignore kobalt test wrappers. 2017-11-06 10:44:54 -08:00
8a83b07ce7 Fixed invalid dependency. 2017-10-31 23:26:38 -07:00
c2ff3fce66 Changed store_test_results path. 2017-10-30 20:40:26 -07:00
e65dcfa5b5 Changed store_artifacts & store_test_results syntax. 2017-10-30 20:36:31 -07:00
641f11767d Cleanup. 2017-10-29 22:11:30 -07:00
d07069a001 Removed CircleCI 1.0 configuration. 2017-10-29 21:32:12 -07:00
22ff6cd7be Copy test-results to ~/test. 2017-10-29 21:00:10 -07:00
a070956a58 Fixed test results location again. 2017-10-29 20:52:04 -07:00
75118c5a50 Fixed test results location again. 2017-10-29 20:49:47 -07:00
291e5488af Fixed test results location. 2017-10-29 20:47:51 -07:00
473f6a5c85 Collect test results. 2017-10-29 20:46:05 -07:00
7102d4e90b Added artifacts storage. 2017-10-29 20:26:59 -07:00
8f29277ded Added CircleCi 2.0 configuration. 2017-10-29 20:16:57 -07:00
d39a2d5938 Removed CircleCi 2.0 configuration. 2017-10-29 18:44:46 -07:00
f2a7f6c95b Made Gradle wrapper executable via: git update-index --chmod=+x gradlew 2017-10-29 18:44:04 -07:00
abb704cfba Added CircleCi 2.0 configuration. 2017-10-29 18:33:19 -07:00
ac53321f8f Added Java 9. 2017-10-29 10:33:42 -07:00
b9643bdfd8 Added debug.log. 2017-10-29 10:18:03 -07:00
9c25eab0c6 Beta 30 2017-10-29 10:17:50 -07:00
afed3fcbe9 log4J, rome, okhttp3, json, testng updates. 2017-10-29 10:17:27 -07:00
a70683b76f Gradle & Kobalt updates. 2017-10-29 10:16:29 -07:00
c69048d935 Updated to Rome 1.7.4. 2017-07-19 00:04:21 -07:00
30f06d97ce Libaries and plugins updates. 2017-07-02 16:43:44 -07:00
b5fdbe66af Refactored constructor. 2017-06-01 01:20:04 -07:00
0eca6aa660 Copyright update. 2017-05-31 11:00:29 -07:00
e12fceb406 Kobalt 1.0.87 update. 2017-05-31 11:00:08 -07:00
ec780ff0fc Removed blank line. 2017-05-31 10:59:32 -07:00
4f47bed348 Added more tests. 2017-05-31 10:59:11 -07:00
3803bec28e Added circleci configuration. 2017-05-31 00:23:40 -07:00
7e1c78b92b Swapped Delicious ref with Pinboard. 2017-05-31 00:23:09 -07:00
cf2d964b6e Added tests. 2017-05-31 00:21:54 -07:00
f9f219abe5 Fixed whois output. 2017-05-31 00:21:09 -07:00
dfcef78db6 Updated licenses. 2017-05-19 09:49:05 -07:00
30c29f1a53 Moved to Log4J 2. 2017-05-19 09:43:16 -07:00
32f0585a3c Cleanup. 2017-05-18 20:18:01 -07:00
06789a80a1 Switched to OkHttp. 2017-05-18 20:17:32 -07:00
73dbd6c0d8 Implemented Pinboard.in integration. 2017-05-17 17:38:14 -07:00
16953c8f98 Added API end point for Delicious. 2017-05-15 21:45:26 -07:00
80d7f7c9db IDEA files update. 2017-05-10 12:20:21 -07:00
b58121d9e6 Gradle 3.5 update. 2017-05-10 12:20:03 -07:00
090746abb4 SemVer 1.0.0 update. 2017-05-10 12:19:04 -07:00
a9364be3e3 Updated copyright. 2017-05-10 12:18:31 -07:00
20af9efc17 Added sublime project. 2017-05-10 12:17:45 -07:00
940f10bf60 Added deploy task. 2017-04-30 23:17:04 -07:00
7076c928a1 Removed jweather dependency. 2017-04-30 23:16:35 -07:00
a45a514542 Updated to new semver template format. 2017-04-30 23:14:03 -07:00
bc985dbed4 Removed old jweather module. 2017-04-30 23:12:45 -07:00
8a8de137d1 Switched to new semver mustache template. 2017-04-22 10:03:12 -07:00
492bf96e02 Fixed description. 2017-04-08 18:50:26 -07:00
8ac439d047 Updated website with new weather module. 2017-04-03 12:24:49 -07:00
88169c111b Changed clone URL to https. 2017-04-03 10:26:12 -07:00
67884791f4 Updated to Kobalt 1.0.46 2017-04-03 10:03:10 -07:00
4de4d00141 Added recap empty response. 2017-04-03 09:55:04 -07:00
57a71a8ea5 Fixed space in weather help. 2017-04-03 09:43:49 -07:00
f8906aaf63 Updated Kobalt build dependencies. 2017-04-02 23:20:49 -07:00
87dc05d392 Commented out OWM api key property. 2017-04-02 23:20:25 -07:00
bbbe8930a7 Spacing cleanup. 2017-04-02 23:19:19 -07:00
8aaf9f1246 Improved weather help. 2017-04-02 20:15:22 -07:00
312c0b572f Updated dependencies. 2017-04-02 19:39:06 -07:00
38852c29ed Added space between badges. 2017-04-02 19:26:16 -07:00
3d753f1927 Upgrade Gradle wrapper 2017-04-02 19:23:58 -07:00
e14357c295 Added build status. 2017-04-02 19:23:46 -07:00
4dfdb19636 Added TravisCI configuration. 2017-04-02 19:11:51 -07:00
ef59258eec Added OWM url for queried city. 2017-04-02 18:52:53 -07:00
5e5f0d84d1 Added OpenWeatherMap weather module. 2017-04-02 18:13:10 -07:00
cb24ebbfe2 Updated to Kobalt 1.0.45 2017-04-02 18:12:00 -07:00
80302ce179 More javadoc improvements. 2016-07-18 19:34:23 -07:00
88115b6ee8 Finished convertion to java.time 2016-07-17 14:11:13 -07:00
89f64cd9f5 Extensive javadoc cleanup.
Started to convert to the java.time
2016-07-17 02:35:05 -07:00
ad36c18124 Code formmating, tabs to spaces, etc. 2016-07-16 18:15:14 -07:00
e90992a7f6 Java 8 loops optimizations. 2016-07-16 11:32:11 -07:00
5c8951a0a8 Updated to new SwingWorker.
More Java 8 optimizations.
2016-07-16 00:54:47 -07:00
9e601d45ef Fixed release task dependencies. 2016-07-08 06:11:48 -07:00
ebc012ab14 Merge branch 'master' of /home/erik/projects/github/java/mobibot 2016-07-05 11:40:10 -07:00
7a50ac88ac More info command improvements. 2016-07-05 11:31:58 -07:00
01a53b0ed0 More info command improvements. 2016-07-04 15:15:10 -07:00
86fdde261d Added more details to info command. 2016-07-04 14:58:11 -07:00
e89d633744 Added more details to info command. 2016-07-03 21:10:51 -07:00
3f0c9102cd Merge branch 'master' of /home/erik/projects/github/java/mobibot 2016-07-03 20:06:44 -07:00
95c7c416cb Added jcenter() 2016-07-03 20:04:13 -07:00
d4e4672952 Adeed Utils.plural() method. 2016-07-03 18:39:42 -07:00
85c7fe14fd Added basic help to properties file. 2016-07-03 10:36:34 -07:00
f318f830ce Optimized Twitter module. 2016-07-02 21:14:07 -07:00
36d109fbb3 Updated licenses. 2016-07-02 20:40:52 -07:00
3e11fd9ee6 Moved tell methods to their own class. 2016-07-02 12:32:24 -07:00
015a368bd1 Moved most commands to modules. 2016-07-02 02:27:18 -07:00
b120e1da87 Changed to compileOnly dependencies. 2016-06-30 11:47:25 -07:00
7c42064561 Delete fetcher.properties on GitHub 2016-06-27 18:25:43 -07:00
de50cbd10e Delete License.txt on GitHub 2016-06-27 18:24:43 -07:00
33c820a140 Excluded explicit jokes. 2016-06-27 18:16:55 -07:00
7fce4e009d Removed reverseColor(int) from Utils class. 2016-06-27 13:08:01 -07:00
9b8ba57e68 Fixed colors.
Added last player.
2016-06-27 12:11:54 -07:00
e5064f0e0e Added support for Google Custom Search Engine.
Optimized for Java 8.
2016-06-26 23:50:13 -07:00
62c011234e Upgraded to ROME 1.6.1
Added run arguments to build.gradle
2016-06-26 18:09:42 -07:00
77f2f5c218 Updated libraries. 2016-06-25 12:37:51 -07:00
a048fec8a0 Updated/moved license. 2016-02-05 16:02:51 -08:00
e1685ba706 Updated dependencies. 2016-02-05 13:15:50 -08:00
2c1602f331 Code formatting. 2016-02-02 21:39:29 -08:00
9cf5ee8fbc Added semantic version annotations.
Added and updated license.
2016-01-25 16:59:36 -08:00
b71c488977 Improved source code documenation. 2015-12-07 20:05:08 -08:00
ef7dd954a5 PMD/FindBugs optimization. 2015-12-07 01:24:56 -08:00
cdb50c576d Fixed typos. 2015-11-09 00:39:11 -08:00
30f432390e Updated website for 0.6.0 release. 2015-10-26 23:17:20 -07:00
edf97b3e1c Updated to exp4j v0.4.5. 2015-10-26 14:40:41 -07:00
c5c5e94b7b Added reverse color for games.
More code cleanup.
2015-10-24 01:42:20 -07:00
3e0bef10d7 Updated libraries dependencies.
More code cleanup.
2015-10-23 17:58:36 -07:00
9d67b34354 Fixed .gitignore 2015-10-22 16:02:52 -07:00
9684726ee5 Merge remote-tracking branch 'origin/master' 2015-08-31 12:54:03 -07:00
12e3a57836 Added Javascript encoding/decoding to joke module. 2015-08-31 12:43:28 -07:00
284d1f5dfe Added Javascript encoding/decoding to joke module. 2015-08-31 12:36:40 -07:00
b7e6cbe8ca Changed Quote module to Joke, using the Internet Chuck Norris Database. 2015-08-29 12:54:58 -07:00
80921e2aea Fixed currencies display, added help for currency rates keyword. 2015-08-29 12:27:18 -07:00
0255fa537f Code clean/reformat.
Updated copyright.
2015-01-30 01:28:26 -08:00
d02377a491 Added doLast to deploy task. 2015-01-30 01:23:57 -08:00
ad6a0e25d8 Save messages after clean, if needed. 2015-01-30 01:22:49 -08:00
2518945cfc Validation for the addlog command.
More code cleanup.
2014-05-01 02:39:23 -07:00
b720927061 Added user-agent to jsoup posted link title query.
More code & comments cleanup.
2014-04-30 02:36:59 -07:00
85ed19f259 Messages are now sent when people join, change nick or talk on the channel.
Updated licenses.
More code cleanup.
2014-04-29 06:44:21 -07:00
e31a22af11 Implemented Entries manager.
Implemented Messages manager.
Enabled caching of the currency exchange rates.
Moved commands, utils, etc. to separate classes.
Added more weather data.
2014-04-28 19:41:31 -07:00
153363a320 Code cleanup.
More gradle integration.
Implemented random quote via iheartquotes.com
Implemented war game.
2014-04-24 06:07:45 -07:00
5858e12b1a Moved to gradle build system.
Using exp4j instead of MathEvaluator for calcuation now.
2014-04-19 21:16:53 -07:00
3b9c5d6431 Updated Twitter4J for API 1.1 support. 2013-06-12 14:31:23 -07:00
af780428d4 Changed comments format in RSS for better readability. 2012-11-09 00:43:17 -08:00
b2496618bf Merge remote-tracking branch 'origin/master' 2012-07-06 02:06:12 -07:00
d5669d4cdb Automatically fetches the title of a URL submission if not already specified.
Fixed delicious tags. (comma delimited)
Added submitter's nick to tags.
2012-07-06 02:03:03 -07:00
cb885254b2 Automatically fetches the title of a URL submission if not already specified.
Fixed delicious tags. (comma delimited)
Added submitter's nick to tags.
2012-07-06 01:47:25 -07:00
9b9fe1329d Added ignore file for Git. 2012-05-11 21:59:47 -07:00
59cb187041 Reformatted "Posted by" attribution in the feed's entry description. 2010-10-04 08:09:24 +00:00
ff091e03bf Added "Posted by" attribution in the feed's entry description. 2010-09-17 08:56:43 +00:00
a70a0629c3 Removed Jaiku (defunct) support.
Replaced Google SOAP API (defunct) with JSON API.
Added support for posting to identi.ca.
Fixed various StockQuote fetching problems.
2010-09-15 10:37:01 +00:00
dc3b4bb675 Added sample properties. 2010-09-15 01:21:21 +00:00
d566780730 Added sample properties. 2010-09-15 01:00:01 +00:00
2dcde65fd4 Added sample properties. 2010-09-15 00:48:54 +00:00
733e570925 Added sample properties. 2010-09-15 00:21:08 +00:00
4d31ef0132 Removed properties directory. 2010-09-15 00:14:57 +00:00
2380e02c7a Updated various libraries. 2010-09-15 00:03:38 +00:00
203 changed files with 12471 additions and 8713 deletions

62
.circleci/config.yml Normal file
View file

@ -0,0 +1,62 @@
version: 2.1
orbs:
sdkman: joshdholtz/sdkman@0.2.0
defaults: &defaults
working_directory: ~/repo
environment:
JVM_OPTS: -Xmx3200m
TERM: dumb
CI_NAME: "CircleCI"
commands:
build_and_test:
parameters:
reports-dir:
type: string
default: "build/reports/test_results"
steps:
- checkout
- sdkman/setup-sdkman
- sdkman/sdkman-install:
candidate: kotlin
version: 2.1.10
- run:
name: Download dependencies
command: ./bld download
- run:
name: Compile source
command: ./bld compile
- run:
name: Run tests
command: ./bld jacoco -reports-dir=<< parameters.reports-dir >>
- store_test_results:
path: << parameters.reports-dir >>
- store_artifacts:
path: build/reports/jacoco/test/html
jobs:
bld_jdk17:
<<: *defaults
docker:
- image: cimg/openjdk:17.0
steps:
- build_and_test
bld_jdk21:
<<: *defaults
docker:
- image: cimg/openjdk:21.0
steps:
- build_and_test
workflows:
bld:
jobs:
- bld_jdk17
- bld_jdk21

View file

@ -1,8 +0,0 @@
DevSuite
build
dist
log4j.properties
mobibot.properties
fetcher.properties
*.ser
logs

2
.editorconfig Normal file
View file

@ -0,0 +1,2 @@
[*]
insert_final_newline = true

5
.gitattributes vendored Normal file
View file

@ -0,0 +1,5 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=auto
# batch files are specific to windows and always crlf
*.bat eol=crlf

58
.github/workflows/bld.yml vendored Normal file
View file

@ -0,0 +1,58 @@
name: bld-ci
on: [push, pull_request, workflow_dispatch]
env:
ALPHAVANTAGE_API_KEY: ${{ secrets.ALPHAVANTAGE_API_KEY }}
CHATGPT_API_KEY: ${{ secrets.CHATGPT_API_KEY }}
CI_NAME: "GitHub CI"
COVERAGE_JDK: "21"
COVERAGE_KOTLIN: "2.1.0"
EXCHANGERATE_API_KEY: ${{ secrets.EXCHANGERATE_API_KEY }}
KOTLIN_HOME: /usr/share/kotlinc
MASTODON_ACCESS_TOKEN: ${{ secrets.MASTODON_ACCESS_TOKEN }}
MASTODON_HANDLE: ${{ secrets.MASTODON_HANDLE }}
MASTODON_INSTANCE: ${{ secrets.MASTODON_INSTANCE }}
OWM_API_KEY: ${{ secrets.OWM_API_KEY }}
PINBOARD_API_TOKEN: ${{ secrets.PINBOARD_API_TOKEN }}
jobs:
build-bld-project:
runs-on: ubuntu-latest
strategy:
matrix:
java-version: [17, 21, 24]
kotlin-version: [1.9.25, 2.0.20, 2.1.20]
steps:
- name: Checkout source repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up JDK ${{ matrix.java-version }} with Kotlin ${{ matrix.kotlin-version }}
uses: actions/setup-java@v4
with:
distribution: "zulu"
java-version: ${{ matrix.java-version }}
- name: Download dependencies
run: ./bld download
- name: Compile source
run: ./bld compile
- name: Run tests
run: ./bld jacoco
- name: Remove pom.xml
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
run: rm -rf pom.xml
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
if: success() && matrix.java-version == env.COVERAGE_JDK && matrix.kotlin-version == env.COVERAGE_KOTLIN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

63
.gitignore vendored Normal file
View file

@ -0,0 +1,63 @@
.gradle
.DS_Store
build
lib/bld/**
!lib/bld/bld-wrapper.jar
!lib/bld/bld-wrapper.properties
lib/compile/
lib/runtime/
lib/standalone/
lib/test/
# IDEA ignores
# User-specific
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf
# AWS User-specific
.idea/**/aws.xml
# Generated files
.idea/**/contentModel.xml
# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml
# Gradle
.idea/**/gradle.xml
# Mongo Explorer plugin
.idea/**/mongoSettings.xml
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# SonarLint plugin
.idea/sonarlint/
# Editor-based Rest Client
.idea/httpRequests
bin
deploy
local.properties
logs
mobibot.properties
out
/target/

24
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,24 @@
image: fedora:latest
variables:
CI_NAME: "GitLab CI"
stages:
- test
before_script:
- dnf -qy update && dnf -y install zip
- curl -s "https://get.sdkman.io" | bash
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java
- sdk install kotlin
- source "$HOME/.sdkman/bin/sdkman-init.sh"
test:
stage: test
script:
- ./bld download
- ./bld compile
- ./bld test

30
.idea/app.iml generated Normal file
View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/build/main" />
<output-test url="file://$MODULE_DIR$/build/test" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/main/resources" type="java-resource" relativeOutputPath="resources" />
<sourceFolder url="file://$MODULE_DIR$/src/test/java" isTestSource="true" />
<sourceFolder url="file://$MODULE_DIR$/src/test/resources" type="java-test-resource" />
<sourceFolder url="file://$MODULE_DIR$/src/main/kotlin" isTestSource="false" />
<sourceFolder url="file://$MODULE_DIR$/src/test/kotlin" isTestSource="true" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library" scope="RUNTIME">
<library>
<CLASSES>
<root url="file://$MODULE_DIR$/src/main/resources/templates" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="compile" level="project" />
<orderEntry type="library" scope="RUNTIME" name="runtime" level="project" />
<orderEntry type="library" scope="TEST" name="test" level="project" />
</component>
</module>

14
.idea/bld.iml generated Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager">
<output url="file://$MODULE_DIR$/build/bld" />
<output-test url="file://$MODULE_DIR$/build/bld" />
<exclude-output />
<content url="file://$MODULE_DIR$/src/bld">
<sourceFolder url="file://$MODULE_DIR$/src/bld/java" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="bld" level="project" />
</component>
</module>

6
.idea/bld.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="BldConfiguration">
<events />
</component>
</project>

6
.idea/copyright/BSD_3.xml generated Normal file
View file

@ -0,0 +1,6 @@
<component name="CopyrightManager">
<copyright>
<option name="notice" value="&amp;#36;file.fileName&#10;&#10;Copyright 2004-&amp;#36;today.year Erik C. Thauvin (erik@thauvin.net)&#10;&#10;Redistribution and use in source and binary forms, with or without&#10;modification, are permitted provided that the following conditions are met:&#10;&#10; Redistributions of source code must retain the above copyright notice, this&#10; list of conditions and the following disclaimer.&#10;&#10; Redistributions in binary form must reproduce the above copyright notice,&#10; this list of conditions and the following disclaimer in the documentation&#10; and/or other materials provided with the distribution.&#10;&#10; Neither the name of this project nor the names of its contributors may be&#10; used to endorse or promote products derived from this software without&#10; specific prior written permission.&#10;&#10;THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot;&#10;AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE&#10;IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE&#10;DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE&#10;FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL&#10;DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR&#10;SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER&#10;CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,&#10;OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE&#10;OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." />
<option name="myName" value="BSD-3" />
</copyright>
</component>

3
.idea/copyright/profiles_settings.xml generated Normal file
View file

@ -0,0 +1,3 @@
<component name="CopyrightManager">
<settings default="BSD-3" />
</component>

View file

@ -0,0 +1,8 @@
<component name="InspectionProjectProfileManager">
<profile version="1.0">
<option name="myName" value="Project Default" />
<inspection_tool class="JavadocDeclaration" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ADDITIONAL_TAGS" value="created" />
</inspection_tool>
</profile>
</component>

204
.idea/intellij-javadocs-4.0.1.xml generated Normal file
View file

@ -0,0 +1,204 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaDocConfiguration">
<GENERAL>
<MODE>UPDATE</MODE>
<OVERRIDDEN_METHODS>false</OVERRIDDEN_METHODS>
<SPLITTED_CLASS_NAME>true</SPLITTED_CLASS_NAME>
<LEVELS>
<LEVEL>FIELD</LEVEL>
<LEVEL>METHOD</LEVEL>
<LEVEL>TYPE</LEVEL>
</LEVELS>
<VISIBILITIES>
<VISIBILITY>PROTECTED</VISIBILITY>
<VISIBILITY>DEFAULT</VISIBILITY>
<VISIBILITY>PUBLIC</VISIBILITY>
</VISIBILITIES>
</GENERAL>
<TEMPLATES>
<CLASSES>
<CLASS>
<KEY>^.*(public|protected|private)*.+interface\s+\w+.*</KEY>
<VALUE>/**\n
* The interface ${name}.\n
&lt;#if element.typeParameters?has_content&gt; * \n
&lt;/#if&gt;
&lt;#list element.typeParameters as typeParameter&gt;
* @param &lt;${typeParameter.name}&gt; the type parameter\n
&lt;/#list&gt;
*/</VALUE>
</CLASS>
<CLASS>
<KEY>^.*(public|protected|private)*.+enum\s+\w+.*</KEY>
<VALUE>/**\n
* The enum ${name}.\n
*/</VALUE>
</CLASS>
<CLASS>
<KEY>^.*(public|protected|private)*.+class\s+\w+.*</KEY>
<VALUE>/**\n
* The type ${name}.\n
&lt;#if element.typeParameters?has_content&gt; * \n
&lt;/#if&gt;
&lt;#list element.typeParameters as typeParameter&gt;
* @param &lt;${typeParameter.name}&gt; the type parameter\n
&lt;/#list&gt;
*/</VALUE>
</CLASS>
<CLASS>
<KEY>.+</KEY>
<VALUE>/**\n
* The type ${name}.\n
*/</VALUE>
</CLASS>
</CLASSES>
<CONSTRUCTORS>
<CONSTRUCTOR>
<KEY>.+</KEY>
<VALUE>/**\n
* Instantiates a new ${name}.\n
&lt;#if element.parameterList.parameters?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.parameterList.parameters as parameter&gt;
* @param ${parameter.name} the ${paramNames[parameter.name]}\n
&lt;/#list&gt;
&lt;#if element.throwsList.referenceElements?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.throwsList.referenceElements as exception&gt;
* @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
&lt;/#list&gt;
*/</VALUE>
</CONSTRUCTOR>
</CONSTRUCTORS>
<METHODS>
<METHOD>
<KEY>^.*(public|protected|private)*\s*.*(\w(\s*&lt;.+&gt;)*)+\s+get\w+\s*\(.*\).+</KEY>
<VALUE>/**\n
* Gets ${partName}.\n
&lt;#if element.typeParameters?has_content&gt; * \n
&lt;/#if&gt;
&lt;#list element.typeParameters as typeParameter&gt;
* @param &lt;${typeParameter.name}&gt; the type parameter\n
&lt;/#list&gt;
&lt;#if element.parameterList.parameters?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.parameterList.parameters as parameter&gt;
* @param ${parameter.name} the ${paramNames[parameter.name]}\n
&lt;/#list&gt;
&lt;#if isNotVoid&gt;
*\n
* @return the ${partName}\n
&lt;/#if&gt;
&lt;#if element.throwsList.referenceElements?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.throwsList.referenceElements as exception&gt;
* @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
&lt;/#list&gt;
*/</VALUE>
</METHOD>
<METHOD>
<KEY>^.*(public|protected|private)*\s*.*(void|\w(\s*&lt;.+&gt;)*)+\s+set\w+\s*\(.*\).+</KEY>
<VALUE>/**\n
* Sets ${partName}.\n
&lt;#if element.typeParameters?has_content&gt; * \n
&lt;/#if&gt;
&lt;#list element.typeParameters as typeParameter&gt;
* @param &lt;${typeParameter.name}&gt; the type parameter\n
&lt;/#list&gt;
&lt;#if element.parameterList.parameters?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.parameterList.parameters as parameter&gt;
* @param ${parameter.name} the ${paramNames[parameter.name]}\n
&lt;/#list&gt;
&lt;#if isNotVoid&gt;
*\n
* @return the ${partName}\n
&lt;/#if&gt;
&lt;#if element.throwsList.referenceElements?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.throwsList.referenceElements as exception&gt;
* @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
&lt;/#list&gt;
*/</VALUE>
</METHOD>
<METHOD>
<KEY>^.*((public\s+static)|(static\s+public))\s+void\s+main\s*\(\s*String\s*(\[\s*\]|\.\.\.)\s+\w+\s*\).+</KEY>
<VALUE>/**\n
* The entry point of application.\n
&lt;#if element.parameterList.parameters?has_content&gt;
*\n
&lt;/#if&gt;
* @param ${element.parameterList.parameters[0].name} the input arguments\n
&lt;#if element.throwsList.referenceElements?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.throwsList.referenceElements as exception&gt;
* @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
&lt;/#list&gt;
*/</VALUE>
</METHOD>
<METHOD>
<KEY>.+</KEY>
<VALUE>/**\n
* ${name}&lt;#if isNotVoid&gt; ${return}&lt;/#if&gt;.\n
&lt;#if element.typeParameters?has_content&gt; * \n
&lt;/#if&gt;
&lt;#list element.typeParameters as typeParameter&gt;
* @param &lt;${typeParameter.name}&gt; the type parameter\n
&lt;/#list&gt;
&lt;#if element.parameterList.parameters?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.parameterList.parameters as parameter&gt;
* @param ${parameter.name} the ${paramNames[parameter.name]}\n
&lt;/#list&gt;
&lt;#if isNotVoid&gt;
*\n
* @return the ${return}\n
&lt;/#if&gt;
&lt;#if element.throwsList.referenceElements?has_content&gt;
*\n
&lt;/#if&gt;
&lt;#list element.throwsList.referenceElements as exception&gt;
* @throws ${exception.referenceName} the ${exceptionNames[exception.referenceName]}\n
&lt;/#list&gt;
*/</VALUE>
</METHOD>
</METHODS>
<FIELDS>
<FIELD>
<KEY>^.*(public|protected|private)*.+static.*(\w\s\w)+.+</KEY>
<VALUE>/**\n
* The constant ${element.getName()}.\n
*/</VALUE>
</FIELD>
<FIELD>
<KEY>^.*(public|protected|private)*.*(\w\s\w)+.+</KEY>
<VALUE>/**\n
&lt;#if element.parent.isInterface()&gt;
* The constant ${element.getName()}.\n
&lt;#else&gt;
* The ${name}.\n
&lt;/#if&gt; */</VALUE>
</FIELD>
<FIELD>
<KEY>.+</KEY>
<VALUE>/**\n
&lt;#if element.parent.isEnum()&gt;
*${name} ${typeName}.\n
&lt;#else&gt;
* The ${name}.\n
&lt;/#if&gt;*/</VALUE>
</FIELD>
</FIELDS>
</TEMPLATES>
</component>
</project>

16
.idea/kotlinc.xml generated Normal file
View file

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Kotlin2JsCompilerArguments">
<option name="moduleKind" value="plain" />
</component>
<component name="Kotlin2JvmCompilerArguments">
<option name="jvmTarget" value="17" />
</component>
<component name="KotlinCommonCompilerArguments">
<option name="apiVersion" value="2.0" />
<option name="languageVersion" value="2.0" />
</component>
<component name="KotlinJpsPluginSettings">
<option name="version" value="2.1.0" />
</component>
</project>

18
.idea/libraries/bld.xml generated Normal file
View file

@ -0,0 +1,18 @@
<component name="libraryTable">
<library name="bld">
<CLASSES>
<root url="file://$PROJECT_DIR$/lib/bld" />
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$PROJECT_DIR$/lib/bld" />
<root url="jar://$USER_HOME$/.bld/dist/bld-2.2.1-sources.jar!/" />
</SOURCES>
<excluded>
<root url="jar://$PROJECT_DIR$/lib/bld/bld-wrapper.jar!/" />
</excluded>
<jarDirectory url="file://$PROJECT_DIR$/lib/bld" recursive="false" />
<jarDirectory url="file://$PROJECT_DIR$/lib/bld" recursive="false" type="SOURCES" />
</library>
</component>

13
.idea/libraries/compile.xml generated Normal file
View file

@ -0,0 +1,13 @@
<component name="libraryTable">
<library name="compile">
<CLASSES>
<root url="file://$PROJECT_DIR$/lib/compile" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$PROJECT_DIR$/lib/compile" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="true" />
<jarDirectory url="file://$PROJECT_DIR$/lib/compile" recursive="true" type="SOURCES" />
</library>
</component>

14
.idea/libraries/runtime.xml generated Normal file
View file

@ -0,0 +1,14 @@
<component name="libraryTable">
<library name="runtime">
<CLASSES>
<root url="file://$PROJECT_DIR$/lib/runtime" />
<root url="file://$PROJECT_DIR$/src/main/resources" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$PROJECT_DIR$/lib/runtime" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="true" />
<jarDirectory url="file://$PROJECT_DIR$/lib/runtime" recursive="true" type="SOURCES" />
</library>
</component>

14
.idea/libraries/test.xml generated Normal file
View file

@ -0,0 +1,14 @@
<component name="libraryTable">
<library name="test">
<CLASSES>
<root url="file://$PROJECT_DIR$/lib/test" />
<root url="file://$PROJECT_DIR$/src/test/resources" />
</CLASSES>
<JAVADOC />
<SOURCES>
<root url="file://$PROJECT_DIR$/lib/test" />
</SOURCES>
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="true" />
<jarDirectory url="file://$PROJECT_DIR$/lib/test" recursive="true" type="SOURCES" />
</library>
</component>

14
.idea/misc.xml generated Normal file
View file

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<pattern value="net.thauvin.erik.MobibotBuild" method="deploy" />
<pattern value="net.thauvin.erik.MobibotBuild" method="jacoco" />
<pattern value="net.thauvin.erik.MobibotBuild" />
<pattern value="net.thauvin.erik.MobibotBuild" method="detekt" />
<pattern value="net.thauvin.erik.MobibotBuild" method="detektBaseline" />
<pattern value="net.thauvin.erik.MobibotBuild" method="rootPom" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build" />
</component>
</project>

9
.idea/modules.xml generated Normal file
View file

@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/app.iml" filepath="$PROJECT_DIR$/.idea/app.iml" />
<module fileurl="file://$PROJECT_DIR$/.idea/bld.iml" filepath="$PROJECT_DIR$/.idea/bld.iml" />
</modules>
</component>
</project>

9
.idea/runConfigurations/Run Tests.xml generated Normal file
View file

@ -0,0 +1,9 @@
<component name="ProjectRunConfigurationManager">
<configuration default="false" name="Run Tests" type="Application" factoryName="Application" nameIsGenerated="true">
<option name="MAIN_CLASS_NAME" value="net.thauvin.erik.MobibotTest" />
<module name="app" />
<method v="2">
<option name="Make" enabled="true" />
</method>
</configuration>
</component>

6
.idea/vcs.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

3
.vscode/settings.json vendored Normal file
View file

@ -0,0 +1,3 @@
{
"java.compile.nullAnalysis.mode": "automatic"
}

View file

@ -1,294 +0,0 @@
2005-11-08 14:58 erik
* buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws,
lib/delicious-1.6.jar, lib/delicious-1.7.jar,
lib/delicious-1.9.jar, src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java: Added ability to
set the port. Added NickServ registartion. Updated to delicious
1.9 API. Update URL to mobitopia.org.
2005-08-08 21:53 erik
* lib/delicious-1.7.jar: Updated to delicious 1.7
2005-05-11 02:05 erik
* buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws,
lib/commons-httpclient-3.0-rc1.jar,
lib/commons-httpclient-3.0-rc2.jar, lib/delicious-1.5.jar,
lib/delicious-1.6.jar,
src/net/thauvin/erik/mobibot/ReleaseInfo.java: Updated to
commons-httpclient 3.0rc2 Updated to delicious 1.6
2005-05-10 22:47 erik
* mobibot.iml, mobibot.iws, lib/commons-net-1.2.2.jar,
lib/commons-net-1.4.0.jar: Updated to commons-net 1.4.0
2005-05-05 12:47 erik
* properties/mobibot.properties,
src/net/thauvin/erik/mobibot/CurrencyConverter.java,
src/net/thauvin/erik/mobibot/DeliciousPoster.java,
src/net/thauvin/erik/mobibot/EntryLink.java,
src/net/thauvin/erik/mobibot/Mobibot.java, buildnum.properties,
mobibot.fb, mobibot.ipr, mobibot.iws,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
src/net/thauvin/erik/mobibot/StockQuote.java: Updated locations.
2005-03-06 13:04 erik
* mobibot.iws, lib/delicious-1.4.jar: Update to delcious-java 1.5.
2005-03-06 13:04 erik
* lib/delicious-1.5.jar, buildnum.properties, mobibot.iml,
mobibot.iws, src/net/thauvin/erik/mobibot/ReleaseInfo.java:
Update to delicious-java 1.5.
2005-03-06 08:30 erik
* ChangeLog.txt: Updated ChangeLog.
2005-03-06 08:28 erik
* buildnum.properties, mobibot.iws,
src/net/thauvin/erik/mobibot/DeliciousPoster.java,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
src/net/thauvin/erik/mobibot/SwingWorker.java: Added threading
while posting to del.icio.us.
2005-03-05 13:52 erik
* ChangeLog.txt, mobibot.iws, licenses/delicious-java License.txt,
website/index.html: Added delicious-java license. Updated
ChangeLog.
2005-03-05 13:40 erik
* lib/commons-codec-1.3.jar, lib/commons-httpclient-2.0.1.jar,
lib/commons-httpclient-3.0-rc1.jar, lib/delicious-1.4.jar,
properties/mobibot.properties, build.properties,
buildnum.properties, mobibot.iml, mobibot.ipr, mobibot.iws,
src/net/thauvin/erik/mobibot/DeliciousPoster.java,
src/net/thauvin/erik/mobibot/EntryLink.java,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
website/index.html: Added support for del.icio.us
2004-11-16 07:46 erik
* buildnum.properties, mobibot.iws,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
website/index.html: Added the ability to ignore nicknames.
2004-10-30 13:37 erik
* buildnum.properties, mobibot.iws,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
website/index.html: Added the ability to ignore links from
specified nicknames.
2004-10-04 07:22 erik
* build.properties, buildnum.properties, mobibot.iws,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java: Added
action(channel, action) method. Added input validation to
action/send methods.
2004-09-28 02:15 erik
* lib/MathEvaluator.jar: Fixed a problem with the MathEvaluator
library where "atan(), asin(), acos()" never worked right.
2004-09-27 18:36 erik
* .cvsignore, build.properties, build.xml, buildnum.properties,
mobibot.iml, mobibot.ipr, mobibot.iws,
ant/jreleaseinfo-1.2.0.jar, lib/EXML.jar, lib/fetchrss.jar,
lib/jdom-1.0.jar, lib/jdom.jar, lib/pircbot.jar,
lib/rome-0.4.jar, lib/rome-fetcher-0.4.jar, lib/rsslibj.jar,
licenses/EXML-license.txt, licenses/ROME License.txt,
licenses/RSSJLib License.txt, licenses/fetchrss License.txt,
properties/fetcher.properties,
src/net/thauvin/erik/mobibot/CurrencyConverter.java,
src/net/thauvin/erik/mobibot/EntryLink.java,
src/net/thauvin/erik/mobibot/FeedReader.java,
src/net/thauvin/erik/mobibot/GoogleSearch.java,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/ReleaseInfo.java,
src/net/thauvin/erik/mobibot/StockQuote.java,
src/net/thauvin/erik/mobibot/Weather.java, website/index.html:
Rome is now used to create and read the various feed.
2004-08-03 01:07 erik
* lib/commons-httpclient-2.0-final.jar, build.xml, mobibot.iml,
mobibot.ipr, mobibot.iws, lib/commons-httpclient-2.0.1.jar,
src/net/thauvin/erik/mobibot/Mobibot.java: Commons HTTPClinet
2.0.1 update. Added automated backup for the data file.
2004-07-07 07:10 erik
* lib/commons-logging.jar: Commons Logging 1.0.4 update.
2004-07-07 07:10 erik
* lib/pircbot.jar: PircBot 1.4.0 update.
2004-07-07 07:10 erik
* lib/: commons-net-1.2.0.jar, commons-net-1.2.2.jar: Commons Net
1.2.2 update.
2004-07-05 19:03 erik
* lib/: jweather-0.2.4.jar, jweather-0.2.5.jar: jweather 0.2.5
upgrade
2004-05-03 10:53 erik
* lib/: commons-net-1.1.0.jar, commons-net-1.2.0.jar,
jweather-0.2.3.jar, jweather-0.2.4.jar: commons-net 1.1.0 and
jweather 0.2.4
2004-03-10 09:05 erik
* .cvsignore: Ignore all serial files.
2004-03-10 09:04 erik
* src/net/thauvin/erik/mobibot/Mobibot.java: Removed angled
brackets around URLs as it was breaking Trillian. Added pong
command.
2004-03-10 09:03 erik
* src/net/thauvin/erik/mobibot/Weather.java: Added invalid station
ID message.
2004-03-10 09:03 erik
* src/net/thauvin/erik/mobibot/: FeedReader.java,
GoogleSearch.java: Removed angled brackets around URLs as it was
breaking Trillian.
2004-03-02 05:53 erik
* mobibot.iws, src/net/thauvin/erik/mobibot/Mobibot.java: Now uses
setAutoNickChange()
2004-03-02 05:52 erik
* lib/pircbot.jar: PircBot 1.3.0
2004-02-25 17:21 erik
* ChangeLog.txt: Initial import.
2004-02-25 16:27 erik
* mobibot.iws, src/net/thauvin/erik/mobibot/Mobibot.java: Added
random ping response.
2004-02-25 04:12 erik
* src/net/thauvin/erik/mobibot/: CurrencyConverter.java,
GoogleSearch.java, Mobibot.java, Weather.java: Added -serial
command line argument. Added ability to search the current URL
posts. Added ping command. Added more efficient arguments
parsing in the public and private commands. Added ability for
the originator to modify a post's URL. Removed the various
URL-based attributes from the constructor. Fixed the nick
command.
2004-02-24 05:09 erik
* README.txt: The properties file can now be specified from the
command line.
2004-02-24 04:58 erik
* website/index.html: Added reference to Commons CLI.
2004-02-24 04:56 erik
* mobibot.iml, mobibot.iws, lib/commons-cli-1.0.jar,
src/net/thauvin/erik/mobibot/Mobibot.java: The properties file
can now be specified from the command line.
2004-02-24 04:55 erik
* src/net/thauvin/erik/mobibot/CurrencyConverter.java: Added the
ability to list the current rates.
2004-02-18 03:40 erik
* src/net/thauvin/erik/mobibot/: Mobibot.java, Weather.java: The
weather command help is now returned when a station id is not
specified.
2004-02-17 06:10 erik
* README.txt: Added (very) minimal instructions.
2004-02-17 03:22 erik
* website/index.html: Added wiki reference.
2004-02-16 20:04 erik
* .cvsignore, build.properties, build.xml, mobibot.fb, mobibot.iml,
mobibot.ipr, mobibot.iws, lib/EXML.jar,
lib/commons-httpclient-2.0-final.jar, lib/commons-logging.jar,
lib/commons-net-1.1.0.jar, lib/fetchrss.jar, lib/google.jar,
lib/MathEvaluator.jar, lib/googleapi.jar,
lib/jakarta-oro-2.0.8.jar, lib/jdom.jar, lib/jweather-0.2.3.jar,
lib/log4j-1.2.8.jar, lib/pircbot.jar, lib/rsslibj.jar,
licenses/Commons License.txt, licenses/EXML-license.txt,
licenses/Google License.txt, licenses/GoogleTagLib License.txt,
licenses/JDOM License.txt, licenses/JWeather License.txt,
licenses/License.txt, licenses/Log4j License.txt,
licenses/PircBot License.html, licenses/RSSJLib License.txt,
licenses/fetchrss License.txt, properties/log4j.properties,
properties/mobibot.properties,
src/net/thauvin/erik/mobibot/CurrencyConverter.java,
src/net/thauvin/erik/mobibot/EntryComment.java,
src/net/thauvin/erik/mobibot/EntryLink.java,
src/net/thauvin/erik/mobibot/FeedReader.java,
src/net/thauvin/erik/mobibot/GoogleSearch.java,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/StockQuote.java,
src/net/thauvin/erik/mobibot/Weather.java, website/index.html,
website/simple.css: Initial import.
2004-02-16 20:04 erik
* .cvsignore, build.properties, build.xml, mobibot.fb, mobibot.iml,
mobibot.ipr, mobibot.iws, lib/EXML.jar,
lib/commons-httpclient-2.0-final.jar, lib/commons-logging.jar,
lib/commons-net-1.1.0.jar, lib/fetchrss.jar, lib/google.jar,
lib/MathEvaluator.jar, lib/googleapi.jar,
lib/jakarta-oro-2.0.8.jar, lib/jdom.jar, lib/jweather-0.2.3.jar,
lib/log4j-1.2.8.jar, lib/pircbot.jar, lib/rsslibj.jar,
licenses/Commons License.txt, licenses/EXML-license.txt,
licenses/Google License.txt, licenses/GoogleTagLib License.txt,
licenses/JDOM License.txt, licenses/JWeather License.txt,
licenses/License.txt, licenses/Log4j License.txt,
licenses/PircBot License.html, licenses/RSSJLib License.txt,
licenses/fetchrss License.txt, properties/log4j.properties,
properties/mobibot.properties,
src/net/thauvin/erik/mobibot/CurrencyConverter.java,
src/net/thauvin/erik/mobibot/EntryComment.java,
src/net/thauvin/erik/mobibot/EntryLink.java,
src/net/thauvin/erik/mobibot/FeedReader.java,
src/net/thauvin/erik/mobibot/GoogleSearch.java,
src/net/thauvin/erik/mobibot/Mobibot.java,
src/net/thauvin/erik/mobibot/StockQuote.java,
src/net/thauvin/erik/mobibot/Weather.java, website/index.html,
website/simple.css: Initial revision

26
LICENSE.txt Normal file
View file

@ -0,0 +1,26 @@
Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of this project nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

33
README.md Normal file
View file

@ -0,0 +1,33 @@
# mobibot
[![License (3-Clause BSD)](https://img.shields.io/badge/license-BSD%203--Clause-blue.svg)](https://opensource.org/licenses/BSD-3-Clause)
[![Kotlin](https://img.shields.io/badge/kotlin-2.1.20-7f52ff.svg)](https://kotlinlang.org)
[![bld](https://img.shields.io/badge/2.2.1-FA9052?label=bld&labelColor=2392FF)](https://rife2.com/bld)
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=ethauvin_mobibot&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=ethauvin_mobibot)
[![GitHub CI](https://github.com/ethauvin/mobibot/actions/workflows/bld.yml/badge.svg)](https://github.com/ethauvin/mobibot/actions/workflows/bld.yml)
[![CircleCI](https://circleci.com/gh/ethauvin/mobibot/tree/master.svg?style=shield)](https://circleci.com/gh/ethauvin/mobibot/tree/master)
Some very basic instructions:
```sh
# clone with git or download the ZIP
git clone https://github.com/ethauvin/mobibot.git
cd mobibot
# build JAR and deploy
./bld jar deploy
cd deploy
# configure the properties
vi *.properties *.xml
# help
java -jar mobibot.jar -h
# launch
/usr/bin/nohup java -jar mobibot.jar &
```
For a listing of features, see the [website](https://mobitopia.org/mobibot/).

View file

@ -1,23 +0,0 @@
Some very basic instructions:
ant jar
mkdir run
cp dist/mobibot.jar run
cp -R lib run
cp properties/*.properties run
cd run
mkdir logs
{ configure the properties }
vi *.properties
{ help }
java -jar mobibot.jar -h
{ launch }
/usr/bin/nohup java -jar mobibot.jar &

Binary file not shown.

20
bitbucket-pipelines.yml Normal file
View file

@ -0,0 +1,20 @@
image: ubuntu:latest
pipelines:
default:
- step:
name: Test with bld
script:
# Install latest Java & Kotlin via SDKMAN!
- apt-get update -qq && apt-get install -y curl zip
- curl -s "https://get.sdkman.io" | bash
- echo sdkman_auto_answer=true > $HOME/.sdkman/etc/config
- echo sdkman_auto_selfupdate=true >> $HOME/.sdkman/etc/config
- source "$HOME/.sdkman/bin/sdkman-init.sh"
- sdk install java
- sdk install kotlin
- source "$HOME/.sdkman/bin/sdkman-init.sh"
# Download, compile and test with bld
- ./bld download
- ./bld compile
- ./bld test

2
bld Executable file
View file

@ -0,0 +1,2 @@
#!/usr/bin/env sh
java -jar "$(dirname "$0")/lib/bld/bld-wrapper.jar" "$0" --build net.thauvin.erik.MobibotBuild "$@"

4
bld.bat Normal file
View file

@ -0,0 +1,4 @@
@echo off
set DIRNAME=%~dp0
if "%DIRNAME%" == "" set DIRNAME=.
java -jar "%DIRNAME%/lib/bld/bld-wrapper.jar" "%0" --build net.thauvin.erik.MobibotBuild %*

View file

@ -1,12 +0,0 @@
# Project
proj.name=mobibot
proj.version=0.4
proj.package=net.thauvin.erik.mobibot
proj.run=${proj.package}.Mobibot
# Locations
path.classes=build
path.src=src
path.dist=dist
path.lib=lib
path.ant=ant

View file

@ -1,52 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="mobibot" default="build" basedir=".">
<property file="${basedir}/build.properties" />
<path id="path.source">
<pathelement location="${path.src}" />
</path>
<path id="path.class">
<fileset dir="${path.lib}">
<include name="**/*.jar"/>
</fileset>
</path>
<path id="ant.class">
<fileset dir="${path.ant}">
<include name="**/*.jar"/>
</fileset>
</path>
<taskdef name="jreleaseinfo" classname="ch.oscg.jreleaseinfo.anttask.JReleaseInfoAntTask" classpathref="ant.class"/>
<target name="init">
<tstamp />
<mkdir dir="${path.classes}"/>
<mkdir dir="${path.dist}"/>
</target>
<target name="compile" depends="init" description="Compiles sources">
<jreleaseinfo targetDir="${basedir}/${path.src}" className="ReleaseInfo" packageName="${proj.package}" project="${proj.name}" version="${proj.version}" buildnumfile="${basedir}/buildnum.properties"/>
<mkdir dir="${path.classes}" />
<javac sourcepathref="path.source" classpathref="path.class" destdir="${path.classes}" debug="on" deprecation="on">
<src refid="path.source" />
</javac>
</target>
<target name="build" depends="clean,jar" description="Rebuilds project" />
<target name="jar" depends="compile" description="Builds the JAR">
<copy todir="${path.classes}">
<fileset dir="${path.src}" includes="*.properties" />
</copy>
<pathconvert targetos="unix" pathsep=" " property="mf.lib" refid="path.class">
<map from="${basedir}" to="."/>
</pathconvert>
<jar destfile="${basedir}/${path.dist}/${ant.project.name}.jar" basedir="${path.classes}" excludes="**/.dependency-info/**">
<manifest>
<attribute name="Main-Class" value="${proj.run}"/>
<attribute name="Class-Path" value=". ${mf.lib}"/>
</manifest>
</jar>
</target>
<target name="clean" depends="init" description="Removes classses">
<delete quiet="true" includeEmptyDirs="true">
<fileset dir="${path.classes}" includes="*,*/**"/>
<fileset dir="${path.dist}" includes="*,*/**"/>
</delete>
</target>
</project>

View file

@ -1,3 +0,0 @@
#ANT Task: ch.oscg.jreleaseinfo.BuildNumberHandler
#Tue Sep 14 01:40:47 PDT 2010
build.num.last=7

112
config/detekt/baseline.xml Normal file
View file

@ -0,0 +1,112 @@
<?xml version="1.0" ?>
<SmellBaseline>
<ManuallySuppressedIssues></ManuallySuppressedIssues>
<CurrentIssues>
<ID>CyclomaticComplexMethod:FeedsManager.kt$FeedsManager.Companion$@JvmStatic fun saveFeed(entries: Entries, currentFile: String = CURRENT_XML)</ID>
<ID>CyclomaticComplexMethod:Weather2.kt$Weather2.Companion$@JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>LongMethod:FeedsManager.kt$FeedsManager.Companion$@JvmStatic fun saveFeed(entries: Entries, currentFile: String = CURRENT_XML)</ID>
<ID>LongMethod:Mobibot.kt$Mobibot.Companion$@JvmStatic @Throws(Exception::class) fun main(args: Array&lt;String&gt;)</ID>
<ID>LongMethod:StockQuote.kt$StockQuote.Companion$@JvmStatic @Throws(ModuleException::class) fun getQuote(symbol: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>LongMethod:Weather2.kt$Weather2.Companion$@JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>LongParameterList:Comment.kt$Comment$( channel: String, cmd: String, entry: EntryLink, entryIndex: Int, commentIndex: Int, event: GenericMessageEvent )</ID>
<ID>LongParameterList:EntryLink.kt$EntryLink$( // Link's comments val comments: MutableList&lt;EntryComment&gt; = mutableListOf(), // Tags/categories val tags: MutableList&lt;SyndCategory&gt; = mutableListOf(), // Channel var channel: String, // Creation date var date: Date = Calendar.getInstance().time, // Link's URL var link: String, // Author's login var login: String = "", // Author's nickname var nick: String, // Link's title var title: String )</ID>
<ID>MagicNumber:ChatGpt.kt$ChatGpt.Companion$200</ID>
<ID>MagicNumber:ChatGpt.kt$ChatGpt.Companion$429</ID>
<ID>MagicNumber:Comment.kt$Comment$3</ID>
<ID>MagicNumber:CryptoPrices.kt$CryptoPrices$10</ID>
<ID>MagicNumber:CurrencyConverter.kt$CurrencyConverter$11</ID>
<ID>MagicNumber:CurrencyConverter.kt$CurrencyConverter.Companion$3</ID>
<ID>MagicNumber:CurrencyConverter.kt$CurrencyConverter.Companion$4</ID>
<ID>MagicNumber:Cycle.kt$Cycle$10</ID>
<ID>MagicNumber:Cycle.kt$Cycle$1000L</ID>
<ID>MagicNumber:Ignore.kt$Ignore$8</ID>
<ID>MagicNumber:Info.kt$Info.Companion$30</ID>
<ID>MagicNumber:Info.kt$Info.Companion$365</ID>
<ID>MagicNumber:Info.kt$Info.Companion$7</ID>
<ID>MagicNumber:Mastodon.kt$Mastodon.Companion$200</ID>
<ID>MagicNumber:Mobibot.kt$Mobibot$8</ID>
<ID>MagicNumber:Modules.kt$Modules$7</ID>
<ID>MagicNumber:Seen.kt$Seen$7</ID>
<ID>MagicNumber:SocialManager.kt$SocialManager$1000L</ID>
<ID>MagicNumber:SocialManager.kt$SocialManager$60L</ID>
<ID>MagicNumber:StockQuote.kt$StockQuote.Companion$10</ID>
<ID>MagicNumber:Tell.kt$Tell$50</ID>
<ID>MagicNumber:Tell.kt$Tell$7</ID>
<ID>MagicNumber:Users.kt$Users$8</ID>
<ID>MagicNumber:Utils.kt$Utils$200</ID>
<ID>MagicNumber:Utils.kt$Utils$399</ID>
<ID>MagicNumber:Weather2.kt$Weather2.Companion$1.60934</ID>
<ID>MagicNumber:Weather2.kt$Weather2.Companion$32</ID>
<ID>MagicNumber:Weather2.kt$Weather2.Companion$404</ID>
<ID>MagicNumber:Weather2.kt$Weather2.Companion$5</ID>
<ID>MagicNumber:Weather2.kt$Weather2.Companion$9</ID>
<ID>MagicNumber:WorldTime.kt$WorldTime$14</ID>
<ID>MagicNumber:WorldTime.kt$WorldTime$4</ID>
<ID>MagicNumber:WorldTime.kt$WorldTime.Companion$3600</ID>
<ID>MagicNumber:WorldTime.kt$WorldTime.Companion$60</ID>
<ID>MagicNumber:WorldTime.kt$WorldTime.Companion$86.4</ID>
<ID>NestedBlockDepth:Addons.kt$Addons$fun add(command: AbstractCommand): Boolean</ID>
<ID>NestedBlockDepth:Addons.kt$Addons$fun add(module: AbstractModule): Boolean</ID>
<ID>NestedBlockDepth:ChatGpt.kt$ChatGpt.Companion$@JvmStatic @Throws(ModuleException::class) fun chat(query: String, apiKey: String?, maxTokens: Int): String</ID>
<ID>NestedBlockDepth:Comment.kt$Comment$override fun commandResponse(channel: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:CurrencyConverter.kt$CurrencyConverter.Companion$@JvmStatic @Throws(ModuleException::class) fun loadSymbols(apiKey: String?)</ID>
<ID>NestedBlockDepth:CurrencyConverter.kt$CurrencyConverter.Companion$@JvmStatic fun convertCurrency(apiKey: String?, query: String): Message</ID>
<ID>NestedBlockDepth:EntryLink.kt$EntryLink$private fun setTags(tags: List&lt;String?&gt;)</ID>
<ID>NestedBlockDepth:FeedsManager.kt$FeedsManager.Companion$@JvmStatic @Throws(IOException::class, FeedException::class) fun loadFeed(entries: Entries, currentFile: String = CURRENT_XML): String</ID>
<ID>NestedBlockDepth:FeedsManager.kt$FeedsManager.Companion$@JvmStatic fun saveFeed(entries: Entries, currentFile: String = CURRENT_XML)</ID>
<ID>NestedBlockDepth:GoogleSearch.kt$GoogleSearch$override fun commandResponse(channel: String, cmd: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:GoogleSearch.kt$GoogleSearch.Companion$@JvmStatic @Throws(ModuleException::class) fun searchGoogle( query: String, apiKey: String?, cseKey: String?, quotaUser: String = ReleaseInfo.PROJECT ): List&lt;Message&gt;</ID>
<ID>NestedBlockDepth:LinksManager.kt$LinksManager$override fun commandResponse(channel: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:Lookup.kt$Lookup$override fun commandResponse(channel: String, cmd: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:Mastodon.kt$Mastodon.Companion$@JvmStatic @Throws(ModuleException::class) fun toot(apiKey: String?, instance: String?, handle: String?, message: String, isDm: Boolean): String</ID>
<ID>NestedBlockDepth:Posting.kt$Posting$override fun commandResponse(channel: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:Seen.kt$Seen$override fun commandResponse(channel: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:StockQuote.kt$StockQuote.Companion$@JvmStatic @Throws(ModuleException::class) fun getQuote(symbol: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>NestedBlockDepth:Tell.kt$Tell$fun send(event: GenericUserEvent)</ID>
<ID>NestedBlockDepth:Utils.kt$Utils$@JvmStatic fun loadSerialData(file: String, default: Any, logger: Logger, description: String): Any</ID>
<ID>NestedBlockDepth:Utils.kt$Utils$@JvmStatic fun saveSerialData(file: String, data: Any, logger: Logger, description: String)</ID>
<ID>NestedBlockDepth:Weather2.kt$Weather2$override fun commandResponse(channel: String, cmd: String, args: String, event: GenericMessageEvent)</ID>
<ID>NestedBlockDepth:Weather2.kt$Weather2.Companion$@JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>ReturnCount:Addons.kt$Addons$fun exec(channel: String, cmd: String, args: String, event: GenericMessageEvent): Boolean</ID>
<ID>ReturnCount:Addons.kt$Addons$fun help(channel: String, topic: String, event: GenericMessageEvent): Boolean</ID>
<ID>ReturnCount:ExceptionSanitizer.kt$ExceptionSanitizer$fun ModuleException.sanitize(vararg sanitize: String): ModuleException</ID>
<ID>ReturnCount:Seen.kt$Seen$override fun commandResponse(channel: String, args: String, event: GenericMessageEvent)</ID>
<ID>ThrowsCount:ChatGpt.kt$ChatGpt.Companion$@JvmStatic @Throws(ModuleException::class) fun chat(query: String, apiKey: String?, maxTokens: Int): String</ID>
<ID>ThrowsCount:GoogleSearch.kt$GoogleSearch.Companion$@JvmStatic @Throws(ModuleException::class) fun searchGoogle( query: String, apiKey: String?, cseKey: String?, quotaUser: String = ReleaseInfo.PROJECT ): List&lt;Message&gt;</ID>
<ID>ThrowsCount:Joke.kt$Joke.Companion$@JvmStatic @Throws(ModuleException::class) fun randomJoke(): List&lt;Message&gt;</ID>
<ID>ThrowsCount:Mastodon.kt$Mastodon.Companion$@JvmStatic @Throws(ModuleException::class) fun toot(apiKey: String?, instance: String?, handle: String?, message: String, isDm: Boolean): String</ID>
<ID>ThrowsCount:StockQuote.kt$StockQuote.Companion$@JvmStatic @Throws(ModuleException::class) fun getQuote(symbol: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>ThrowsCount:StockQuote.kt$StockQuote.Companion$@Throws(ModuleException::class) private fun getJsonResponse(response: String, debugMessage: String): JSONObject</ID>
<ID>ThrowsCount:Weather2.kt$Weather2.Companion$@JvmStatic @Throws(ModuleException::class) fun getWeather(query: String, apiKey: String?): List&lt;Message&gt;</ID>
<ID>ThrowsCount:WolframAlpha.kt$WolframAlpha.Companion$@JvmStatic @Throws(ModuleException::class) fun queryWolfram(query: String, units: String = IMPERIAL, appId: String?): String</ID>
<ID>TooGenericExceptionCaught:ChatGpt2.kt$ChatGpt2.Companion$e: Exception</ID>
<ID>TooGenericExceptionCaught:Gemini.kt$Gemini.Companion$e: Exception</ID>
<ID>TooGenericExceptionCaught:Gemini2.kt$Gemini2.Companion$e: Exception</ID>
<ID>TooGenericExceptionCaught:StockQuote.kt$StockQuote.Companion$e: NullPointerException</ID>
<ID>TooGenericExceptionCaught:Weather2.kt$Weather2.Companion$e: NullPointerException</ID>
<ID>TooManyFunctions:EntryLink.kt$EntryLink : Serializable</ID>
<ID>TooManyFunctions:Mobibot.kt$Mobibot : ListenerAdapter</ID>
<ID>TooManyFunctions:Tell.kt$Tell : AbstractCommand</ID>
<ID>UtilityClassWithPublicConstructor:LocalProperties.kt$LocalProperties</ID>
<ID>WildcardImport:AddonsTest.kt$import net.thauvin.erik.mobibot.modules.*</ID>
<ID>WildcardImport:EntryLinkTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:FeedMgrTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:FeedReaderTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:FeedsManager.kt$import com.rometools.rome.feed.synd.*</ID>
<ID>WildcardImport:Gemini2Test.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:GeminiTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:GoogleSearchTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:JokeTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:Mobibot.kt$import java.io.*</ID>
<ID>WildcardImport:Mobibot.kt$import net.thauvin.erik.mobibot.commands.*</ID>
<ID>WildcardImport:Mobibot.kt$import net.thauvin.erik.mobibot.commands.links.*</ID>
<ID>WildcardImport:Mobibot.kt$import net.thauvin.erik.mobibot.modules.*</ID>
<ID>WildcardImport:Mobibot.kt$import org.pircbotx.hooks.events.*</ID>
<ID>WildcardImport:ModuleExceptionTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:SeenTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:StockQuoteTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:TellMessagesMgrTest.kt$import assertk.assertions.*</ID>
<ID>WildcardImport:Utils.kt$import java.io.*</ID>
<ID>WildcardImport:Weather2Test.kt$import assertk.assertions.*</ID>
</CurrentIssues>
</SmellBaseline>

11
deploy.fish Executable file
View file

@ -0,0 +1,11 @@
#!/usr/bin/env fish
./bld clean jar deploy
if test $status -eq 0
echo "cd /home/mobibot/mobitopia/mobibot
lcd deploy
put *.jar
cd lib
rm *.jar
put lib/*.jar" | sftp nix4
end

Binary file not shown.

BIN
lib/bld/bld-wrapper.jar Normal file

Binary file not shown.

View file

@ -0,0 +1,10 @@
bld.downloadExtensionJavadoc=false
bld.downloadExtensionSources=true
bld.downloadLocation=
bld.extension-detekt=com.uwyn.rife2:bld-detekt:0.9.10-SNAPSHOT
bld.extension-gv=com.uwyn.rife2:bld-generated-version:1.0.1
bld.extension-jacoco=com.uwyn.rife2:bld-jacoco-report:0.9.10
bld.extension-kotlin=com.uwyn.rife2:bld-kotlin:1.1.0-SNAPSHOT
bld.repositories=MAVEN_LOCAL,MAVEN_CENTRAL,RIFE2_SNAPSHOTS,RIFE2_RELEASES
bld.sourceDirectories=
bld.version=2.2.1

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View file

@ -1,4 +1,3 @@
Apache License Apache License
Version 2.0, January 2004 Version 2.0, January 2004
http://www.apache.org/licenses/ http://www.apache.org/licenses/

View file

@ -1,150 +0,0 @@
Thank you for using the Google Web APIs (TM) service! By using this
service ("Google Web APIs") you agree to be bound by the following
terms and conditions (the "Terms and Conditions").
PERSONAL AND LEGITIMATE USES ONLY
The Google Web APIs service is made available to you for your
personal, non-commercial use only (at home or at work). You may only
create a single account and must provide accurate identification,
contact, and other information required as part of the registration
process. You may not create any script or other automated tool that
attempts to create multiple Google Web APIs accounts. And you may not
use the search results provided by the Google Web APIs service with an
existing product or service that competes with products or services
offered by Google.
If you are interested in doing anything different than the foregoing,
you must first obtain Google's written consent. If you fail to do so,
Google reserves the right to take legal action against you.
Furthermore, you may not use Google Web APIs in any manner that either
directly or indirectly violates any laws or proprietary rights. This
includes laws and proprietary rights in the United States as well as
in other countries.
If you have questions on your contemplated use or if you have comments
on Google Web APIs or ideas on how to improve it, please email
api-support@google.com. Please note that by doing so, you also grant
Google permission to use and incorporate your ideas or comments into
Google Web APIs without further compensation.
INTELLECTUAL PROPERTY
You agree not to remove, obscure, or alter Google's copyright notice,
trademarks, or other proprietary rights notices affixed to or
contained within Google Web APIs. You also acknowledge that Google
owns all right, title and interest in and to Google Web APIs,
including without limitation all intellectual property rights (the
"Google Rights"). The Google Rights include rights to the following:
(1) the APIs developed and provided by Google, (2) all software
associated with the Google Web APIs server, and (3) the search results
and spell checking you obtain when you use Google Web APIs. The Google
Rights do not include the following: (1) third party components used
as part of Google Web APIs; or (2) software developed by you in
conjunction with using Google Web APIs.
PUBLICITY
So long as you comply with your obligations under this Agreement, you
may indicate that a product or service that you created either used or
is based on Google Web APIs provided that those products or services
do not in Google's reasonable opinion (1) tarnish, infringe, or dilute
Google's trademarks, (2) violate any applicable law, and (3) infringe
any third party rights. If you wish to use the GOOGLE trademark and/or
logo in any other manner, you must first obtain Google's written
consent.
DISCLAIMER OF WARRANTIES
The Google Web APIs service is presently in Beta form and has not been
fully tested or debugged. Accordingly, Google disclaims any
responsibility for any harm resulting from your use of Google Web APIs.
The Google Web APIs service is provided "as is," with no warranties
whatsoever. Google expressly disclaims to the fullest extent permitted
by law all express, implied, and statutory warranties, including,
without limitation, the warranties of merchantability, fitness for a
particular purpose, and non-infringement of proprietary rights. Google
disclaims any warranties regarding the security, reliability,
timeliness, availability, and performance of Google Web APIs.
You understand and agree that you use Google Web APIs at your own
discretion and risk and that you will be solely responsible for any
damages to your computer system or loss of data that results from the
download or use of Google Web APIs.
Some states or other jurisdictions do not allow the exclusion of
implied warranties, so the above exclusions may not apply to you. You
may also have other rights that vary from state to state and
jurisdiction to jurisdiction.
LIMITATION OF LIABILITY
The Google Web APIs service is being provided free of charge.
Accordingly, you agree that Google shall have no liability arising
from or based on your use of Google Web APIs.
Under no circumstances shall Google be liable to any user on account
of that user's use or misuse of Google Web APIs. Such limitation of
liability shall apply to prevent recovery of direct, indirect,
incidental, consequential, special, exemplary, and punitive damages
whether such claim is based on warranty, contract, tort (including
negligence), or otherwise, even if Google has been advised of the
possibility of such damages). Such limitation of liability shall apply
whether the damages arise from use or misuse of and reliance on the
Google Web APIs, from inability to use Google Web APIs, or from the
interruption, suspension, or termination of Google Web APIs (including
such damages incurred by third parties). Such limitation shall apply
notwithstanding a failure of essential purpose of any limited remedy
and to the fullest extent permitted by law.
Some states or other jurisdictions do not allow the exclusion or
limitation of liability for incidental or consequential damages, so
the above limitations and exclusions may not apply to you.
INDEMNIFICATION
You hereby agree to indemnify, defend and hold Google, and its
officers, directors, agents, licensors and licensees (collectively,
the "Indemnified Parties") harmless from and against any and all
liability and costs incurred by the Indemnified Parties in connection
with any claim arising out of your use of Google Web APIs, including,
without limitation, reasonable attorneys' fees. You shall cooperate as
fully as reasonably required in the defense of any claim. Google
reserves the right, at its own expense, to assume the exclusive
defense and control of any matter subject to indemnification by you.
GOOGLE'S SEARCH SERVICE
The Google Web APIs service is designed to be used in conjunction with
Google's search services. Accordingly, your use of Google Web APIs is
also defined by Google's Terms of Service and Privacy Policy. In the
event of a conflict between these Terms and Conditions and Google's
Terms of Service, these Terms and Conditions shall prevail.
TERM AND TERMINATION
If you wish to terminate this Agreement, you may simply cease using
the Google Web APIs service. In such a case, you must delete any
search result information that you may have obtained from the Google
Web APIs service. Google may terminate this Agreement (and your
account) at any time, with or without cause.
GENERAL PROVISIONS
These Terms and Conditions will be governed by and construed in
accordance with the laws of the State of California, without giving
effect to the conflict of laws provisions of California or your actual
state or country of residence. Any dispute arising from these Terms
and Conditions shall be adjudicated in the federal or state courts
located in Santa Clara County, California. If for any reason a court
of competent jurisdiction finds any provision or portion of these
Terms and Conditions to be unenforceable, the remainder of these Terms
and Conditions will continue in full force and effect. These Terms and
Conditions constitute the entire agreement between the parties with
respect to the subject matter hereof and supersede and replace all
prior or contemporaneous understandings or agreements, written or
oral, regarding such subject matter. Any waiver of any provision of
these Terms and Conditions will be effective only if in writing and
signed by Google.

View file

@ -1,29 +0,0 @@
Google Tag Library License
Copyright (c) 2002-2003, Erik C. Thauvin (erik@thauvin.net)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
Neither the name of the author nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,36 +1,34 @@
/*-- /*--
$Id$ Copyright (C) 2000-2012 Jason Hunter & Brett McLaughlin.
Copyright (C) 2000-2004 Jason Hunter & Brett McLaughlin.
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions modification, are permitted provided that the following conditions
are met: are met:
1. Redistributions of source code must retain the above copyright 1. Redistributions of source code must retain the above copyright
notice, this list of conditions, and the following disclaimer. notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright 2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions, and the disclaimer that follows notice, this list of conditions, and the disclaimer that follows
these conditions in the documentation and/or other materials these conditions in the documentation and/or other materials
provided with the distribution. provided with the distribution.
3. The name "JDOM" must not be used to endorse or promote products 3. The name "JDOM" must not be used to endorse or promote products
derived from this software without prior written permission. For derived from this software without prior written permission. For
written permission, please contact <request_AT_jdom_DOT_org>. written permission, please contact <request_AT_jdom_DOT_org>.
4. Products derived from this software may not be called "JDOM", nor 4. Products derived from this software may not be called "JDOM", nor
may "JDOM" appear in their name, without prior written permission may "JDOM" appear in their name, without prior written permission
from the JDOM Project Management <request_AT_jdom_DOT_org>. from the JDOM Project Management <request_AT_jdom_DOT_org>.
In addition, we request (but do not require) that you include in the In addition, we request (but do not require) that you include in the
end-user documentation provided with the redistribution and/or in the end-user documentation provided with the redistribution and/or in the
software itself an acknowledgement equivalent to the following: software itself an acknowledgement equivalent to the following:
"This product includes software developed by the "This product includes software developed by the
JDOM Project (http://www.jdom.org/)." JDOM Project (http://www.jdom.org/)."
Alternatively, the acknowledgment may be graphical using the logos Alternatively, the acknowledgment may be graphical using the logos
available at http://www.jdom.org/images/logos. available at http://www.jdom.org/images/logos.
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
@ -46,11 +44,10 @@
OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE. SUCH DAMAGE.
This software consists of voluntary contributions made by many This software consists of voluntary contributions made by many
individuals on behalf of the JDOM Project and was originally individuals on behalf of the JDOM Project and was originally
created by Jason Hunter <jhunter_AT_jdom_DOT_org> and created by Jason Hunter <jhunter_AT_jdom_DOT_org> and
Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information Brett McLaughlin <brett_AT_jdom_DOT_org>. For more information
on the JDOM Project, please see <http://www.jdom.org/>. on the JDOM Project, please see <http://www.jdom.org/>.
*/ */

21
licenses/JSON License.txt Normal file
View file

@ -0,0 +1,21 @@
Copyright (c) 2002 JSON.org
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The Software shall be used for Good, not Evil.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,340 +0,0 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.
NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

27
licenses/LICENSE.txt Normal file
View file

@ -0,0 +1,27 @@
Copyright (c) 2004-2022, Erik C. Thauvin (erik@thauvin.net)
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of this project nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,29 +0,0 @@
Mobibot License
Copyright (c) 2004-2010, Erik C. Thauvin (erik@thauvin.net)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
Redistributions of source code must retain the above copyright notice, this list
of conditions and the following disclaimer.
Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
Neither the name of the author nor the names of its contributors may be used to
endorse or promote products derived from this software without specific prior
written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -0,0 +1,19 @@
Copyright (c) 2013- Ashutosh Kumar Singh <ashutosh@aksingh.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View file

@ -1,60 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>The GNU General Public License (GPL)</title>
</head>
<body>
<h1>The GNU General Public License (GPL)</h1>
<h2>Version 2, June 1991</h2>
<p> Copyright (C) 1989, 1991 Free Software Foundation, Inc.<br />
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA</p>
<p> Everyone is permitted to copy and distribute verbatim copies<br />
of this license document, but changing it is not allowed.</p>
<p><strong>Preamble</strong></p>
<p>The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too.</p>
<p>When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things.</p>
<p> To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it.</p>
<p>For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights.</p>
<p>We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software.</p>
<p>Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations.</p>
<p>Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all.</p>
<p>The precise terms and conditions for copying, distribution and modification follow.</p>
<p><strong>TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION</strong></p>
<p><strong>0</strong>. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you".</p>
<p>Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does.</p>
<p><strong>1</strong>. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program.</p>
<p>You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee.</p>
<p> <strong>2</strong>. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions:</p>
<blockquote>
<p>a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change.</p>
<p>b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License.</p>
<p>c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.)</p>
</blockquote>
<p>These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it.</p>
<p>Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program.</p>
<p>In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License.</p>
<p><strong>3</strong>. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following:</p>
<blockquote>
<p>a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</p>
<p> b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or,</p>
<p>c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.)</p>
</blockquote>
<p>The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable.</p>
<p>If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code.</p>
<p><strong>4</strong>. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.</p>
<p> <strong>5</strong>. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it.</p>
<p><strong>6</strong>. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License.</p>
<p><strong>7</strong>. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program.</p>
<p>If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances.</p>
<p>It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice.</p>
<p> This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License.</p>
<p> <strong>8</strong>. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License.</p>
<p> <strong>9</strong>. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns.</p>
<p>Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation.</p>
<p><strong>10</strong>. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally.</p>
<p><strong>NO WARRANTY</strong></p>
<p><strong>11</strong>. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.</p>
<p><strong>12</strong>. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.</p>
<p>END OF TERMS AND CONDITIONS</p>
</body>
</html>

13
licenses/PircBotX.txt Normal file
View file

@ -0,0 +1,13 @@
Copyright (C) 2010-2014 Leon Blakey <lord.quackstar at gmail.com>
PircBotX is free software: you can redistribute it and/or modify it under the
terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
PircBotX is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
PircBotX. If not, see <http://www.gnu.org/licenses/>.

View file

@ -1,14 +0,0 @@
Copyright 2004 Sun Microsystems, Inc.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View file

@ -0,0 +1,21 @@
Copyright (c) 2004-2017 QOS.ch
All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

View file

@ -1,26 +0,0 @@
Twitter4J includes software from JSON.org to parse JSON response from the Twitter API. You can see the license term at http://www.JSON.org/license.html
Copyright (c) 2007-2010, Yusuke Yamamoto
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of the Yusuke Yamamoto nor the
names of its contributors may be used to endorse or promote products
derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY Yusuke Yamamoto ``AS IS'' AND ANY
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL Yusuke Yamamoto BE LIABLE FOR ANY
DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

View file

@ -1,29 +0,0 @@
/**
* Copyright (c) 2004, David A. Czarnecki
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
* Neither the name of the "David A. Czarnecki" nor the names of
* its contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
* CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
* INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
* EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/

View file

@ -0,0 +1,21 @@
The MIT License
Copyright (c) 2009-2022 Jonathan Hedley <jonathan@hedley.net>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View file

@ -1,21 +0,0 @@
[Jar files]
D:\projects\java\mobibot\build
[Source dirs]
D:\projects\java\mobibot\src
[Aux classpath entries]
D:\projects\java\mobibot\lib\commons-cli-1.0.jar
D:\projects\java\mobibot\lib\commons-codec-1.3.jar
D:\projects\java\mobibot\lib\commons-httpclient-3.0-rc1.jar
D:\projects\java\mobibot\lib\commons-logging.jar
D:\projects\java\mobibot\lib\commons-net-1.2.2.jar
D:\projects\java\mobibot\lib\delicious-1.5.jar
D:\projects\java\mobibot\lib\google.jar
D:\projects\java\mobibot\lib\googleapi.jar
D:\projects\java\mobibot\lib\jakarta-oro-2.0.8.jar
D:\projects\java\mobibot\lib\jdom-1.0.jar
D:\projects\java\mobibot\lib\jweather-0.2.5.jar
D:\projects\java\mobibot\lib\log4j-1.2.8.jar
D:\projects\java\mobibot\lib\MathEvaluator.jar
D:\projects\java\mobibot\lib\pircbot.jar
D:\projects\java\mobibot\lib\rome-0.4.jar
D:\projects\java\mobibot\lib\rome-fetcher-0.4.jar

View file

@ -1,202 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<module relativePaths="false" type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="false">
<output url="file://$MODULE_DIR$/build" />
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/google.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/googleapi.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/log4j-1.2.13.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="file://$MODULE_DIR$" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/MathEvaluator.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/jakarta-oro-2.0.8.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/jweather-0.2.5.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/rome-fetcher-0.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/commons-codec-1.3.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/commons-net-1.4.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/rome-0.4.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/pircbot.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/xmlrpc-client-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/ws-commons-util-1.0.2.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/xmlrpc-common-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/jdom-1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/delicious-1.14.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/commons-httpclient-3.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/commons-logging-1.1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/commons-cli-1.1.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MODULE_DIR$/lib/twitter4j-core-2.1.5-SNAPSHOT.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
</component>
</module>

View file

@ -1,586 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="AntConfiguration">
<defaultAnt bundledAnt="true" />
<buildFile url="file://$PROJECT_DIR$/build.xml">
<additionalClassPath />
<antReference projectDefault="true" />
<customJdkName value="" />
<maximumHeapSize value="128" />
<maximumStackSize value="2" />
<properties />
</buildFile>
</component>
<component name="BSFConsole">
<sendcommandbycontrolenter>false</sendcommandbycontrolenter>
<restoresystemstreams>false</restoresystemstreams>
<outwaitsforerr>false</outwaitsforerr>
<errwaitsforout>false</errwaitsforout>
<storedupsinrecentcommands>false</storedupsinrecentcommands>
<moduleforclasspath />
<includeoutputpath>false</includeoutputpath>
<includetestsoutputpath>false</includetestsoutputpath>
<languages>
<language name="ant" engine="org.kos.bsfconsoleplugin.languages.AntConsoleBSFEngine" />
<language name="netrexx" engine="org.apache.bsf.engines.netrexx.NetRexxEngine" />
<language name="xslt" engine="org.apache.bsf.engines.xslt.XSLTEngine" />
<language name="beanbasic" engine="org.apache.bsf.engines.beanbasic.BeanBasicEngine" />
<language name="beanshell" engine="bsh.util.BeanShellBSFEngine" />
<language name="bml" engine="org.apache.bml.ext.BMLEngine" />
<language name="groovy" engine="org.codehaus.groovy.bsf.GroovyEngine" />
<language name="jacl" engine="org.apache.bsf.engines.jacl.JaclEngine" />
<language name="java" engine="org.apache.bsf.engines.java.JavaEngine" />
<language name="javaclass" engine="org.apache.bsf.engines.javaclass.JavaClassEngine" />
<language name="javascript" engine="org.apache.bsf.engines.javascript.JavaScriptEngine" />
<language name="jpython" engine="org.apache.bsf.engines.jpython.JPythonEngine" />
<language name="jscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="judoscript" engine="com.judoscript.BSFJudoEngine" />
<language name="jython" engine="org.apache.bsf.engines.jython.JythonEngine" />
<language name="lotusscript" engine="org.apache.bsf.engines.lotusscript.LsEngine" />
<language name="perl" engine="org.apache.bsf.engines.perl.PerlEngine" />
<language name="perlscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
<language name="pnuts" engine="pnuts.ext.PnutsBSFEngine" />
<language name="ruby" engine="org.jruby.javasupport.bsf.JRubyEngine" />
<language name="vbscript" engine="org.apache.bsf.engines.activescript.ActiveScriptEngine" />
</languages>
<startupscripts />
<preferredrecentcommandsdividerlocations>
<dividerlocationd language="beanshell" position="1028" />
</preferredrecentcommandsdividerlocations>
<BSFConsoleSearchOptions searchfromcursor="false">
<recentsearches />
</BSFConsoleSearchOptions>
</component>
<component name="BuildJarProjectSettings">
<option name="BUILD_JARS_ON_MAKE" value="false" />
</component>
<component name="CodeStyleProjectProfileManger">
<option name="PROJECT_PROFILE" />
<option name="USE_PROJECT_LEVEL_SETTINGS" value="false" />
</component>
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions>
<entry name=".+\.(properties|xml|html|dtd|tld)" />
<entry name=".+\.(gif|png|jpeg|jpg)" />
</resourceExtensions>
<wildcardResourcePatterns>
<entry name="?*.properties" />
<entry name="?*.xml" />
<entry name="?*.html" />
<entry name="?*.dtd" />
<entry name="?*.tld" />
<entry name="?*.gif" />
<entry name="?*.png" />
<entry name="?*.jpeg" />
<entry name="?*.jpg" />
</wildcardResourcePatterns>
<annotationProcessing enabled="false" useClasspath="true" />
</component>
<component name="CopyrightManager" default="">
<module2copyright />
</component>
<component name="DependenciesAnalyzeManager">
<option name="myForwardDirection" value="false" />
</component>
<component name="DependencyValidationManager">
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</component>
<component name="EclipseCompilerSettings">
<option name="GENERATE_NO_WARNINGS" value="true" />
<option name="DEPRECATION" value="false" />
</component>
<component name="EclipseEmbeddedCompilerSettings">
<option name="DEBUGGING_INFO" value="true" />
<option name="GENERATE_NO_WARNINGS" value="true" />
<option name="DEPRECATION" value="false" />
<option name="ADDITIONAL_OPTIONS_STRING" value="" />
<option name="MAXIMUM_HEAP_SIZE" value="128" />
</component>
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
<component name="EntryPointsManager">
<entry_points version="2.0" />
</component>
<component name="ExportToHTMLSettings">
<option name="PRINT_LINE_NUMBERS" value="false" />
<option name="OPEN_IN_BROWSER" value="false" />
<option name="OUTPUT_DIRECTORY" />
</component>
<component name="IdProvider" IDEtalkID="ADF4C98C99466E4EF52C8D21B83FF938" />
<component name="InspectionProjectProfileManager">
<profiles>
<profile version="1.0" is_locked="false">
<option name="myName" value="Project Default" />
<option name="myLocal" value="false" />
<inspection_tool class="AbstractClassExtendsConcreteClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AbstractClassWithoutAbstractMethods" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AbstractMethodCallInConstructor" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AbstractMethodOverridesAbstractMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AbstractMethodOverridesConcreteMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="Annotation" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AnnotationClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AssertAsName" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AssertStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AssignmentToCatchBlockParameter" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AssignmentToCollectionFieldFromParameter" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignorePrivateMethods" value="true" />
</inspection_tool>
<inspection_tool class="AssignmentToMethodParameter" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreTransformationOfOriginalParameter" value="false" />
</inspection_tool>
<inspection_tool class="AssignmentUsedAsCondition" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="AutoBoxing" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreAddedToCollection" value="false" />
</inspection_tool>
<inspection_tool class="BreakStatementWithLabelJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="BusyWait" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CStyleArrayDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CastThatLosesPrecision" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreIntegerCharCasts" value="false" />
</inspection_tool>
<inspection_tool class="ChannelResource" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CheckedExceptionClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassEscapesItsScope" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassInTopLevelPackage" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassMayBeInterface" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassNameDiffersFromFileName" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassReferencesSubclass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ClassWithMultipleLoggers" enabled="true" level="WARNING" enabled_by_default="true">
<option name="loggerClassName" value="java.util.logging.Logger" />
</inspection_tool>
<inspection_tool class="CollectionsMustHaveInitialCapacity" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="CompareToUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ConfusingFloatingPointLiteral" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ConfusingMainMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ConstantDeclaredInAbstractClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ConstantDeclaredInInterface" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ConstantNamingConvention" enabled="true" level="WARNING" enabled_by_default="true">
<option name="onlyCheckImmutables" value="false" />
<option name="m_regex" value="[A-Z_\d]*" />
<option name="m_minLength" value="5" />
<option name="m_maxLength" value="32" />
</inspection_tool>
<inspection_tool class="ContinueStatementJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ContinueStatementWithLabel" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="DeclareCollectionAsInterface" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreLocalVariables" value="false" />
<option name="ignorePrivateMethodsAndFields" value="false" />
</inspection_tool>
<inspection_tool class="DefaultNotLastCaseInSwitchJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="DollarSignInName" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="DoubleCheckedLocking" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreOnVolatileVariables" value="false" />
</inspection_tool>
<inspection_tool class="EmptyCatchBlockJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EmptyClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EmptyFinallyBlockJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EmptySynchronizedStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EnumAsName" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EnumClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EqualsAndHashcode" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="EqualsUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ExceptionFromCatchWhichDoesntWrap" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreGetMessage" value="false" />
</inspection_tool>
<inspection_tool class="FallthruInSwitchStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="FieldAccessedSynchronizedAndUnsynchronized" enabled="true" level="WARNING" enabled_by_default="true">
<option name="countGettersAndSetters" value="false" />
</inspection_tool>
<inspection_tool class="FieldHidesSuperclassField" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreInvisibleFields" value="true" />
</inspection_tool>
<inspection_tool class="FieldMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="FinalClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="FinalMethodInFinalClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="FloatingPointEquality" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ForLoopReplaceableByWhile" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreLoopsWithoutConditions" value="false" />
</inspection_tool>
<inspection_tool class="HashCodeUsesNonFinalVariable" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="IOResource" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoredTypesString" value="java.io.ByteArrayOutputStream,java.io.ByteArrayInputStream,java.io.StringBufferInputStream,java.io.CharArrayWriter,java.io.CharArrayReader,java.io.StringWriter,java.io.StringReader" />
</inspection_tool>
<inspection_tool class="IncrementDecrementUsedAsExpression" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="IndexOfReplaceableByContains" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="InnerClassMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="InnerClassOnInterface" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreInnerInterfaces" value="false" />
</inspection_tool>
<inspection_tool class="InnerClassVariableHidesOuterClassVariable" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreInvisibleFields" value="true" />
</inspection_tool>
<inspection_tool class="InstanceVariableInitialization" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignorePrimitives" value="false" />
</inspection_tool>
<inspection_tool class="InstanceVariableUninitializedUse" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignorePrimitives" value="false" />
</inspection_tool>
<inspection_tool class="InstanceofCatchParameter" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="InstanceofInterfaces" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="InstanceofThis" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="IntegerDivisionInFloatingPointContext" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="InterfaceNamingConvention" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_regex" value="[A-Z][A-Za-z\d]*" />
<option name="m_minLength" value="8" />
<option name="m_maxLength" value="64" />
</inspection_tool>
<inspection_tool class="JDBCResource" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="JUnitTestNG" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="JavaLangReflect" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LengthOneStringsInConcatenation" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LiteralAsArgToStringEquals" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="LocalCanBeFinal" enabled="true" level="WARNING" enabled_by_default="true">
<option name="REPORT_VARIABLES" value="true" />
<option name="REPORT_PARAMETERS" value="true" />
</inspection_tool>
<inspection_tool class="LocalVariableHidingMemberVariable" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreInvisibleFields" value="true" />
<option name="m_ignoreStaticMethods" value="true" />
</inspection_tool>
<inspection_tool class="LongLiteralsEndingWithLowercaseL" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MarkerInterface" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MethodMayBeStatic" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_onlyPrivateOrFinal" value="false" />
<option name="m_ignoreEmptyMethods" value="true" />
</inspection_tool>
<inspection_tool class="MethodNamesDifferOnlyByCase" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MethodOverloadsParentMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MethodOverridesPrivateMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MethodOverridesStaticMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MissortedModifiers" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_requireAnnotationsFirst" value="true" />
</inspection_tool>
<inspection_tool class="MisspelledCompareTo" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MisspelledHashcode" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MultipleDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MultipleTopLevelClassesInFile" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MultipleTypedDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="MultiplyOrDivideByPowerOfTwo" enabled="true" level="WARNING" enabled_by_default="true">
<option name="checkDivision" value="false" />
</inspection_tool>
<inspection_tool class="NativeMethods" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NestedConditionalExpressionJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NestedSwitchStatementJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NestedSynchronizedStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NonExceptionNameEndsWithException" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NonSerializableWithSerializationMethods" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NonStaticFinalLogger" enabled="true" level="WARNING" enabled_by_default="true">
<option name="loggerClassName" value="java.util.logging.Logger" />
</inspection_tool>
<inspection_tool class="NonStaticInnerClassInSecureContext" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NonSynchronizedMethodOverridesSynchronizedMethod" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="NoopMethodInAbstractClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ObsoleteCollection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreRequiredObsoleteCollectionTypes" value="false" />
</inspection_tool>
<inspection_tool class="OctalAndDecimalIntegersMixed" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PackageVisibleField" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PackageVisibleInnerClass" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreEnums" value="false" />
</inspection_tool>
<inspection_tool class="ParameterHidingMemberVariable" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreInvisibleFields" value="true" />
<option name="m_ignoreStaticMethodParametersHidingInstanceFields" value="false" />
<option name="m_ignoreForConstructors" value="false" />
<option name="m_ignoreForPropertySetters" value="false" />
<option name="m_ignoreForAbstractMethods" value="false" />
</inspection_tool>
<inspection_tool class="ParameterNamingConvention" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_regex" value="[a-z][A-Za-z\d]*" />
<option name="m_minLength" value="1" />
<option name="m_maxLength" value="20" />
</inspection_tool>
<inspection_tool class="ProtectedField" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ProtectedMemberInFinalClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="PublicField" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreEnums" value="false" />
</inspection_tool>
<inspection_tool class="PublicFieldAccessedInSynchronizedContext" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ReadObjectAndWriteObjectPrivate" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="ReadResolveAndWriteReplaceProtected" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="RefusedBequest" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreEmptySuperMethods" value="false" />
</inspection_tool>
<inspection_tool class="ReturnOfCollectionField" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignorePrivateMethods" value="true" />
</inspection_tool>
<inspection_tool class="ReturnThis" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SerializableWithUnconstructableAncestor" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SimplifiableIfStatement" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="Singleton" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SocketResource" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="StandardVariableNames" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="StaticCollection" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreWeakCollections" value="false" />
</inspection_tool>
<inspection_tool class="StaticInheritance" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="StaticMethodNamingConvention" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_regex" value="[a-z][A-Za-z\d]*" />
<option name="m_minLength" value="4" />
<option name="m_maxLength" value="32" />
</inspection_tool>
<inspection_tool class="StaticNonFinalField" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="StaticVariableInitialization" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignorePrimitives" value="false" />
</inspection_tool>
<inspection_tool class="StaticVariableUninitializedUse" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignorePrimitives" value="false" />
</inspection_tool>
<inspection_tool class="StringBufferMustHaveInitialCapacity" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SubtractionInCompareTo" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SwitchStatementWithConfusingDeclaration" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SwitchStatementsWithoutDefault" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreFullyCoveredEnums" value="true" />
</inspection_tool>
<inspection_tool class="SynchronizeOnThis" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="SystemOutErr" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TailRecursionJS" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TextLabelInSwitchStatement" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="TransientFieldInNonSerializableClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UNCHECKED_WARNING" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="UncheckedExceptionClass" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UnnecessarilyQualifiedStaticUsage" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreStaticFieldAccesses" value="false" />
<option name="m_ignoreStaticMethodCalls" value="false" />
<option name="m_ignoreStaticAccessFromStaticContext" value="false" />
</inspection_tool>
<inspection_tool class="UnnecessaryFinalOnParameter" enabled="true" level="WARNING" enabled_by_default="true">
<option name="onlyWarnOnAbstractMethods" value="false" />
</inspection_tool>
<inspection_tool class="UnnecessaryFullyQualifiedName" enabled="true" level="WARNING" enabled_by_default="true">
<option name="m_ignoreJavadoc" value="false" />
</inspection_tool>
<inspection_tool class="UnnecessaryInterfaceModifier" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UnnecessarySemicolon" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="UnnecessaryThis" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UnusedDeclaration" enabled="false" level="WARNING" enabled_by_default="false">
<option name="ADD_MAINS_TO_ENTRIES" value="true" />
<option name="ADD_APPLET_TO_ENTRIES" value="true" />
<option name="ADD_SERVLET_TO_ENTRIES" value="true" />
<option name="ADD_NONJAVA_TO_ENTRIES" value="true" />
<option name="ADDITIONAL_ANNOTATIONS">
<value>
<list size="0" />
</value>
</option>
<option name="ADD_EJB_TO_ENTRIES" value="true" />
<option name="ADD_TESTNG_TO_ENTRIES" value="true" />
<option name="ADD_JUNIT_TO_ENTRIES" value="true" />
</inspection_tool>
<inspection_tool class="UnusedImport" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="UtilityClassWithoutPrivateConstructor" enabled="true" level="WARNING" enabled_by_default="true">
<option name="ignoreClassesWithOnlyMain" value="false" />
</inspection_tool>
<inspection_tool class="VarargParameter" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="WaitNotInLoop" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="WeakerAccess" enabled="false" level="WARNING" enabled_by_default="false">
<option name="SUGGEST_PACKAGE_LOCAL_FOR_MEMBERS" value="true" />
<option name="SUGGEST_PACKAGE_LOCAL_FOR_TOP_CLASSES" value="true" />
<option name="SUGGEST_PRIVATE_FOR_INNERS" value="false" />
</inspection_tool>
<inspection_tool class="ZeroLengthArrayInitialization" enabled="true" level="WARNING" enabled_by_default="true" />
</profile>
</profiles>
<option name="PROJECT_PROFILE" />
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</component>
<component name="JavadocGenerationManager">
<option name="OUTPUT_DIRECTORY" />
<option name="OPTION_SCOPE" value="protected" />
<option name="OPTION_HIERARCHY" value="true" />
<option name="OPTION_NAVIGATOR" value="true" />
<option name="OPTION_INDEX" value="true" />
<option name="OPTION_SEPARATE_INDEX" value="true" />
<option name="OPTION_DOCUMENT_TAG_USE" value="true" />
<option name="OPTION_DOCUMENT_TAG_AUTHOR" value="true" />
<option name="OPTION_DOCUMENT_TAG_VERSION" value="true" />
<option name="OPTION_DOCUMENT_TAG_DEPRECATED" value="true" />
<option name="OPTION_DEPRECATED_LIST" value="true" />
<option name="OTHER_OPTIONS" />
<option name="HEAP_SIZE" />
<option name="LOCALE" />
<option name="OPEN_IN_BROWSER" value="true" />
</component>
<component name="LogConsolePreferences">
<option name="FILTER_ERRORS" value="false" />
<option name="FILTER_WARNINGS" value="false" />
<option name="FILTER_INFO" value="true" />
<option name="CUSTOM_FILTER" />
</component>
<component name="PEExternalization">
<option name="IGNORE_METHOD_NAMES" value="" />
<option name="IGNORE_METHOD_NAMES_ENABLED" value="false" />
<option name="IGNORE_CLASS_CONSTRUCTORS">
<value>
<option class="Exception" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CLASS_CONSTRUCTOR_NAMES_ENABLED" value="true" />
<option name="IGNORE_CLASS_METHODS_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_WHITESPACES" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_PUNCTUATIONS" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED_ENABLED" value="true" />
<option name="IGNORE_STRINGS_CONTAINS_ONLY_SPECIFIED" value="" />
<option name="IGNORE_CLASS_METHODS">
<value>
<option class="Exception" includeInheritors="false" />
<option class="java.util.ResourceBundle" includeInheritors="true" />
</value>
</option>
<option name="IGNORE_CONSTANTS_DECLARATIONS" value="true" />
</component>
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
<component name="ProjectDetails">
<option name="projectName" value="mobibot" />
</component>
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/mobibot.iml" filepath="$PROJECT_DIR$/mobibot.iml" />
</modules>
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_3" assert-keyword="false" jdk-15="false" project-jdk-name="1.6.x" project-jdk-type="JavaSDK" />
<component name="ResourceManagerContainer">
<option name="myResourceBundles">
<value>
<list size="0" />
</value>
</option>
</component>
<component name="SvnBranchConfigurationManager">
<option name="mySupportsUserInfoFilter" value="true" />
</component>
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="CVS" />
</component>
<component name="WebServicesPlugin" addRequiredLibraries="true" />
<component name="com.intellij.jsf.UserDefinedFacesConfigs">
<option name="USER_DEFINED_CONFIGS">
<value>
<list size="0" />
</value>
</option>
</component>
</project>

File diff suppressed because it is too large Load diff

199
pom.xml Normal file
View file

@ -0,0 +1,199 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<groupId>net.thauvin.erik.mobibot</groupId>
<artifactId>mobibot</artifactId>
<version>0.8.0-rc+20250424113056</version>
<name>mobibot</name>
<description></description>
<url></url>
<dependencies>
<dependency>
<groupId>com.github.pircbotx</groupId>
<artifactId>pircbotx</artifactId>
<version>2.3.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.17.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-text</artifactId>
<version>1.13.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-codec</groupId>
<artifactId>commons-codec</artifactId>
<version>1.18.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>commons-net</groupId>
<artifactId>commons-net</artifactId>
<version>3.11.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
<version>2.13.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>33.2.1-jre</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib</artifactId>
<version>2.1.20</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-common</artifactId>
<version>2.1.20</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk7</artifactId>
<version>2.1.20</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlin</groupId>
<artifactId>kotlin-stdlib-jdk8</artifactId>
<version>2.1.20</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-coroutines-core</artifactId>
<version>1.10.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jetbrains.kotlinx</groupId>
<artifactId>kotlinx-cli-jvm</artifactId>
<version>0.3.6</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>2.0.17</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-api</artifactId>
<version>2.24.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-core</artifactId>
<version>2.24.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j2-impl</artifactId>
<version>2.24.3</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-open-ai</artifactId>
<version>0.36.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-google-ai-gemini</artifactId>
<version>0.36.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j-core</artifactId>
<version>0.36.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>dev.langchain4j</groupId>
<artifactId>langchain4j</artifactId>
<version>0.36.2</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.rometools</groupId>
<artifactId>rome</artifactId>
<version>2.1.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.12.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.aksingh</groupId>
<artifactId>owm-japis</artifactId>
<version>2.5.3.0</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.objecthunter</groupId>
<artifactId>exp4j</artifactId>
<version>0.4.8</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20250107</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>org.jsoup</groupId>
<artifactId>jsoup</artifactId>
<version>1.19.1</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.thauvin.erik</groupId>
<artifactId>cryptoprice</artifactId>
<version>1.0.3-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.thauvin.erik</groupId>
<artifactId>jokeapi</artifactId>
<version>1.0.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.thauvin.erik</groupId>
<artifactId>pinboard-poster</artifactId>
<version>1.2.1-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>net.thauvin.erik.urlencoder</groupId>
<artifactId>urlencoder-lib-jvm</artifactId>
<version>1.6.0</version>
<scope>compile</scope>
</dependency>
</dependencies>
</project>

View file

@ -1 +0,0 @@
*.properties

38
properties/log4j2.xml Normal file
View file

@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="warn">
<Appenders>
<Console name="stderr" target="SYSTEM_ERR">
<PatternLayout pattern="%d{HH:mm:ss.SSS} [%t] %-5level %logger{36} - %msg%n"/>
</Console>
<Console name="input" target="SYSTEM_OUT">
<PatternLayout pattern="%d{UNIX_MILLIS} %msg%n"/>
<Filters>
<ThresholdFilter level="warn" onMatch="DENY" onMismatch="NEUTRAL"/>
<ThresholdFilter level="debug" onMatch="ACCEPT" onMismatch="DENY"/>
</Filters>
</Console>
<Console name="output" target="SYSTEM_OUT">
<PatternLayout pattern="%d{UNIX_MILLIS} >>>%msg%n"/>
<Filters>
<ThresholdFilter level="warn" onMatch="DENY" onMismatch="NEUTRAL"/>
<ThresholdFilter level="debug" onMatch="ACCEPT" onMismatch="DENY"/>
</Filters>
</Console>
</Appenders>
<Loggers>
<Root level="warn" additivity="false">
<AppenderRef ref="stderr"/>
</Root>
<logger level="debug" name="org.pircbotx.InputParser" additivity="false">
<appender-ref ref="input"/>
<appender-ref ref="stderr" level="warn"/>
</logger>
<logger level="debug" name="org.pircbotx.output.OutputRaw" additivity="false">
<appender-ref ref="output"/>
<appender-ref ref="stderr" level="warn"/>
</logger>
<logger level="warn" name="net.thauvin.erik.mobibot" additivity="false">
<appender-ref ref="stderr"/>
</logger>
</Loggers>
</Configuration>

View file

@ -0,0 +1,86 @@
channel=#mobitopia
server=irc.libera.chat
#port=6667
login=mobibot
nick=mobibot
#realname=mobibot
# Die command password, if any
#die=changeme
# NickServ password
ident=changeme
#ident-nick=nickserv
#ident-msg=IDENTIFY changepwd
logs=./logs
ignore=chanserv,nickserv
tags=mobile mobitopia
tags-keywords=android ios apple google
feed=http://www.mobitopia.org/rss.xml
backlogs=http://www.mobitopia.org/mobibot/logs
tell-max-days=5
tell-max-size=50
#disabled-commands=die, ignore
disabled-modules=mastodon
#
# API Token for: https://pinboard.in/settings/password
#
#pinboard-api-token=user\:TOKEN
#
# Create a Mastodon application access token at: https//SERVER_INSTANCE/settings/applications
# Make sure the 'write:statuses' scope is enabled.
#
#mastodon-access-token=
#mastodon-instance=mastodon.social
# Mastodon handle to receive channel join/leave notifications
#mastodon-handle=@mobitopia
# Automatically post links to Mastodon
#mastodon-auto-post=true
#
# Get Exchange Rate API key from: https://www.exchangerate-api.com/
#
#exchangerate-api-key=
#
# Create custom search engine at: https://programmablesearchengine.google.com/
# and get API key from: https://console.cloud.google.com/apis
#
#google-api=
#google-cse-cx=
#
# Get OpenWeatherMap API key from: https://openweathermap.org/api
#
#owm-api-key=
#
# Get Alpha Vantage Stock Quote API key from: https://www.alphavantage.co/support/#api-key
#
#alphavantage-api-key=
#
# Get Wolfram Alpha AppID from: https://developer.wolframalpha.com/portal/
#
#wolfram-appid=
#wolfram-units=imperial
#
# Get ChatGPT/OpenAI API key from: https://platform.openai.com/api-keys
#
#chatgpt-api-key=
#chatgpt-max-tokens=1024
#
# Get Google Gemini API key from https://ai.google.dev/gemini-api/docs/api-key
#
#gemini-api-key=
#gemini-max-tokens=1024

28
release_info.txt Normal file
View file

@ -0,0 +1,28 @@
/*
* This file is automatically generated
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/
package {{v packageName/}}
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
/**
* Provides release information.
*/
object {{v className/}} {
const val PROJECT = "{{v project/}}"
const val VERSION = "{{v version/}}"
@JvmField
@Suppress("MagicNumber")
val BUILD_DATE: LocalDateTime = LocalDateTime.ofInstant(
Instant.ofEpochMilli({{v epoch/}}L), ZoneId.systemDefault()
)
const val WEBSITE = "https://mobitopia.org/mobibot/"
const val AUTHOR = "Erik C. Thauvin"
const val AUTHOR_URL = "https://erik.thauvin.net/"
}

7
sonar-project.properties Normal file
View file

@ -0,0 +1,7 @@
sonar.organization=ethauvin-github
sonar.projectKey=ethauvin_mobibot
sonar.coverage.jacoco.xmlReportPaths=build/reports/jacoco/test/jacocoTestReport.xml
sonar.sources=src/main/kotlin/
sonar.tests=src/test/kotlin/
sonar.java.binaries=build/main,build/test
sonar.java.libraries=lib/compile/*.jar

View file

@ -0,0 +1,238 @@
/*
* MobibotBuild.java
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik;
import rife.bld.BuildCommand;
import rife.bld.Project;
import rife.bld.dependencies.Repository;
import rife.bld.extension.CompileKotlinOperation;
import rife.bld.extension.DetektOperation;
import rife.bld.extension.GeneratedVersionOperation;
import rife.bld.extension.JacocoReportOperation;
import rife.bld.extension.kotlin.CompileOptions;
import rife.bld.operations.exceptions.ExitStatusException;
import rife.bld.publish.PomBuilder;
import rife.tools.FileUtils;
import rife.tools.exceptions.FileUtilsErrorException;
import java.io.File;
import java.io.IOException;
import java.time.LocalDateTime;
import java.time.format.DateTimeFormatter;
import java.util.ArrayList;
import java.util.List;
import java.util.jar.Attributes;
import java.util.logging.ConsoleHandler;
import java.util.logging.Level;
import java.util.logging.Logger;
import static rife.bld.dependencies.Repository.*;
import static rife.bld.dependencies.Scope.compile;
import static rife.bld.dependencies.Scope.test;
public class MobibotBuild extends Project {
private static final String DETEKT_BASELINE = "config/detekt/baseline.xml";
final File srcMainKotlin = new File(srcMainDirectory(), "kotlin");
public MobibotBuild() {
pkg = "net.thauvin.erik.mobibot";
name = "mobibot";
version = version(0, 8, 0, "rc+" +
DateTimeFormatter.ofPattern("yyyyMMddHHmmss").format(LocalDateTime.now()));
mainClass = pkg + ".Mobibot";
javaRelease = 17;
downloadSources = true;
autoDownloadPurge = true;
repositories = List.of(
MAVEN_LOCAL,
MAVEN_CENTRAL,
new Repository("https://jitpack.io"),
SONATYPE_SNAPSHOTS_LEGACY);
var log4j = version(2, 24, 3);
var kotlin = version(2, 1, 20);
var langchain = version(0, 36, 2);
scope(compile)
// PircBotX
.include(dependency("com.github.pircbotx", "pircbotx", "2.3.1"))
// Commons (mostly for PircBotX)
.include(dependency("org.apache.commons", "commons-lang3", "3.17.0"))
.include(dependency("org.apache.commons", "commons-text", "1.13.1"))
.include(dependency("commons-codec", "commons-codec", "1.18.0"))
.include(dependency("commons-net", "commons-net", "3.11.1"))
// Google
.include(dependency("com.google.code.gson", "gson", "2.13.1"))
.include(dependency("com.google.guava", "guava", "33.2.1-jre"))
// Kotlin
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-common", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk7", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk8", kotlin))
.include(dependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.10.2"))
.include(dependency("org.jetbrains.kotlinx", "kotlinx-cli-jvm", "0.3.6"))
// Logging
.include(dependency("org.slf4j", "slf4j-api", "2.0.17"))
.include(dependency("org.apache.logging.log4j", "log4j-api", log4j))
.include(dependency("org.apache.logging.log4j", "log4j-core", log4j))
.include(dependency("org.apache.logging.log4j", "log4j-slf4j2-impl", log4j))
// LangChain4J
.include(dependency("dev.langchain4j", "langchain4j-open-ai", langchain))
.include(dependency("dev.langchain4j", "langchain4j-google-ai-gemini", langchain))
.include(dependency("dev.langchain4j", "langchain4j-core", langchain))
.include(dependency("dev.langchain4j", "langchain4j", langchain))
// Misc.
.include(dependency("com.rometools", "rome", "2.1.0"))
.include(dependency("com.squareup.okhttp3", "okhttp", "4.12.0"))
.include(dependency("net.aksingh", "owm-japis", "2.5.3.0"))
.include(dependency("net.objecthunter", "exp4j", "0.4.8"))
.include(dependency("org.json", "json", "20250107"))
.include(dependency("org.jsoup", "jsoup", "1.19.1"))
// Thauvin
.include(dependency("net.thauvin.erik", "cryptoprice", "1.0.3-SNAPSHOT"))
.include(dependency("net.thauvin.erik", "jokeapi", "1.0.1-SNAPSHOT"))
.include(dependency("net.thauvin.erik", "pinboard-poster", "1.2.1-SNAPSHOT"))
.include(dependency("net.thauvin.erik.urlencoder", "urlencoder-lib-jvm", "1.6.0"));
scope(test)
.include(dependency("com.willowtreeapps.assertk", "assertk-jvm", version(0, 28, 1)))
.include(dependency("org.jetbrains.kotlin", "kotlin-test-junit5", kotlin))
.include(dependency("org.junit.jupiter", "junit-jupiter", version(5, 12, 2)))
.include(dependency("org.junit.platform", "junit-platform-console-standalone", version(1, 12, 2)))
.include(dependency("org.junit.platform", "junit-platform-launcher", version(1, 12, 2)));
List<String> jars = new ArrayList<>();
runtimeClasspathJars().forEach(f -> jars.add("./lib/" + f.getName()));
compileClasspathJars().forEach(f -> jars.add("./lib/" + f.getName()));
jarOperation()
.manifestAttribute(Attributes.Name.MAIN_CLASS, mainClass())
.manifestAttribute(Attributes.Name.CLASS_PATH, ". " + String.join(" ", jars));
jarSourcesOperation().sourceDirectories(srcMainKotlin);
}
public static void main(String[] args) {
var level = Level.ALL;
var logger = Logger.getLogger("rife.bld.extension");
var consoleHandler = new ConsoleHandler();
consoleHandler.setLevel(level);
logger.addHandler(consoleHandler);
logger.setLevel(level);
logger.setUseParentHandlers(false);
new MobibotBuild().start(args);
}
@Override
public void clean() throws Exception {
var deploy = new File("deploy");
if (deploy.exists()) {
FileUtils.deleteDirectory(deploy);
}
super.clean();
}
@BuildCommand(summary = "Compiles the Kotlin project")
@Override
public void compile() throws Exception {
releaseInfo();
new CompileKotlinOperation()
.compileOptions(new CompileOptions().progressive(true).verbose(true))
.fromProject(this)
.execute();
}
@Override
public void updates() throws Exception {
super.updates();
pomRoot();
}
@BuildCommand(summary = "Copies all needed files to the deploy directory")
public void deploy() throws FileUtilsErrorException {
var deploy = new File("deploy");
var lib = new File(deploy, "lib");
var ignore = lib.mkdirs();
FileUtils.copyDirectory(new File("properties"), deploy);
for (var jar : compileClasspathJars()) {
FileUtils.copy(jar, new File(lib, jar.getName()));
}
for (var jar : runtimeClasspathJars()) {
FileUtils.copy(jar, new File(lib, jar.getName()));
}
FileUtils.copy(new File(buildDistDirectory(), jarFileName()), new File(deploy, "mobibot.jar"));
}
@BuildCommand(summary = "Checks source with Detekt")
public void detekt() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation()
.fromProject(this)
.baseline(DETEKT_BASELINE)
.execute();
}
@BuildCommand(value = "detekt-baseline", summary = "Creates the Detekt baseline")
public void detektBaseline() throws ExitStatusException, IOException, InterruptedException {
new DetektOperation()
.fromProject(this)
.baseline(DETEKT_BASELINE)
.createBaseline(true)
.execute();
}
@BuildCommand(summary = "Generates JaCoCo Reports")
public void jacoco() throws Exception {
new JacocoReportOperation()
.fromProject(this)
.sourceFiles(srcMainKotlin)
.execute();
}
@BuildCommand(value = "pom-root", summary = "Generates the POM file in the root directory")
public void pomRoot() throws FileUtilsErrorException {
PomBuilder.generateInto(publishOperation().fromProject(this).info(), dependencies(),
new File(workDirectory, "pom.xml"));
}
@BuildCommand(value = "release-info", summary = "Generates the ReleaseInfo class")
public void releaseInfo() throws Exception {
new GeneratedVersionOperation()
.fromProject(this)
.classTemplate(new File(workDirectory(), "release-info.txt"))
.className("ReleaseInfo")
.packageName(pkg)
.directory(srcMainKotlin)
.extension(".kt")
.execute();
}
}

View file

@ -0,0 +1,190 @@
/*
* Addons.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
import net.thauvin.erik.mobibot.Utils.notContains
import net.thauvin.erik.mobibot.commands.AbstractCommand
import net.thauvin.erik.mobibot.commands.links.LinksManager
import net.thauvin.erik.mobibot.modules.AbstractModule
import org.pircbotx.hooks.events.PrivateMessageEvent
import org.pircbotx.hooks.types.GenericMessageEvent
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.util.*
/**
* Modules and Commands addons.
*/
class Addons(private val props: Properties) {
private val logger: Logger = LoggerFactory.getLogger(Addons::class.java)
private val disabledModules = props.getProperty("disabled-modules", "").split(LinksManager.TAG_MATCH)
private val disableCommands = props.getProperty("disabled-commands", "").split(LinksManager.TAG_MATCH)
val commands: MutableList<AbstractCommand> = mutableListOf()
val modules: MutableList<AbstractModule> = mutableListOf()
val names = Names
/**
* Add a module with properties.
*/
fun add(module: AbstractModule): Boolean {
var enabled = false
with(module) {
if (disabledModules.notContains(name, true)) {
if (hasProperties()) {
propertyKeys.forEach {
setProperty(it, props.getProperty(it, ""))
}
}
if (isEnabled) {
modules.add(this)
names.modules.add(name)
names.commands.addAll(commands)
enabled = true
} else {
if (logger.isDebugEnabled) {
logger.debug("Module $name is disabled.")
}
names.disabledModules.add(name)
}
} else {
names.disabledModules.add(name)
}
}
return enabled
}
/**
* Add a command with properties.
*/
fun add(command: AbstractCommand): Boolean {
var enabled = false
with(command) {
if (disableCommands.notContains(name, true)) {
if (properties.isNotEmpty()) {
properties.keys.forEach {
setProperty(it, props.getProperty(it, ""))
}
}
if (isEnabled()) {
commands.add(this)
if (isVisible) {
if (isOpOnly) {
names.ops.add(name)
} else {
names.commands.add(name)
}
}
enabled = true
} else {
if (logger.isDebugEnabled) {
logger.debug("Command $name is disabled.")
}
names.disabledCommands.add(name)
}
} else {
names.disabledCommands.add(name)
}
}
return enabled
}
/**
* Execute a command or module.
*/
fun exec(channel: String, cmd: String, args: String, event: GenericMessageEvent): Boolean {
val cmds = if (event is PrivateMessageEvent) commands else commands.filter { it.isPublic }
for (command in cmds) {
if (command.name.startsWith(cmd)) {
command.commandResponse(channel, args, event)
return true
}
}
val mods = if (event is PrivateMessageEvent) modules.filter { it.isPrivateMsgEnabled } else modules
for (module in mods) {
if (module.commands.contains(cmd)) {
module.commandResponse(channel, cmd, args, event)
return true
}
}
return false
}
/**
* Match a command.
*/
fun match(channel: String, event: GenericMessageEvent): Boolean {
for (command in commands) {
if (command.matches(event.message)) {
command.commandResponse(channel, event.message, event)
return true
}
}
return false
}
/**
* Commands and Modules help.
*/
fun help(channel: String, topic: String, event: GenericMessageEvent): Boolean {
for (command in commands) {
if (command.isVisible && command.name.startsWith(topic)) {
return command.helpResponse(channel, topic, event)
}
}
for (module in modules) {
if (module.commands.contains(topic)) {
return module.helpResponse(event)
}
}
return false
}
/**
* Holds commands and modules names.
*/
object Names {
val modules: MutableList<String> = mutableListOf()
val disabledModules: MutableList<String> = mutableListOf()
val commands: MutableList<String> = mutableListOf()
val disabledCommands: MutableList<String> = mutableListOf()
val ops: MutableList<String> = mutableListOf()
fun sort() {
modules.sort()
disabledModules.sort()
commands.sort()
disabledCommands.sort()
ops.sort()
}
}
}

View file

@ -0,0 +1,101 @@
/*
* Constants.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
/**
* The `Constants`.
*/
object Constants {
/**
* The connect/read timeout in ms.
*/
const val CONNECT_TIMEOUT = 5000
/**
* Debug command line argument.
*/
const val DEBUG_ARG = "debug"
/**
* Default IRC Port.
*/
const val DEFAULT_PORT = 6667
/**
* Default IRC Server.
*/
const val DEFAULT_SERVER = "irc.libera.chat"
/**
* CLI command for usage.
*/
const val CLI_CMD = "java -jar ${ReleaseInfo.PROJECT}.jar"
/**
* User-Agent
*/
const val USER_AGENT = "Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0"
/**
* The help command.
*/
const val HELP_CMD = "help"
/**
* The link command.
*/
const val LINK_CMD = "L"
/**
* The empty title string.
*/
const val NO_TITLE = "No Title"
/**
* Properties command line argument.
*/
const val PROPS_ARG = "properties"
/**
* The tag command
*/
const val TAG_CMD = "T"
/**
* The timer delay in minutes.
*/
const val TIMER_DELAY = 10L
/**
* Properties version line argument.
*/
const val VERSION_ARG = "version"
}

View file

@ -0,0 +1,92 @@
/*
* FeedReader.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
import com.rometools.rome.io.FeedException
import com.rometools.rome.io.SyndFeedInput
import com.rometools.rome.io.XmlReader
import net.thauvin.erik.mobibot.Utils.green
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.sendMessage
import net.thauvin.erik.mobibot.entries.FeedsManager
import net.thauvin.erik.mobibot.msg.Message
import net.thauvin.erik.mobibot.msg.NoticeMessage
import org.pircbotx.hooks.types.GenericMessageEvent
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.io.IOException
import java.net.URL
/**
* Reads an RSS feed.
*/
class FeedReader(private val url: String, val event: GenericMessageEvent) : Runnable {
private val logger: Logger = LoggerFactory.getLogger(FeedsManager::class.java)
/**
* Fetches the Feed's items.
*/
override fun run() {
try {
readFeed(url).forEach {
event.sendMessage("", it)
}
} catch (e: FeedException) {
if (logger.isWarnEnabled) logger.warn("Unable to parse the feed at $url", e)
event.sendMessage("An error has occurred while parsing the feed: ${e.message}")
} catch (e: IOException) {
if (logger.isWarnEnabled) logger.warn("Unable to fetch the feed at $url", e)
event.sendMessage("An IO error has occurred while fetching the feed: ${e.message}")
}
}
companion object {
@JvmStatic
@Throws(FeedException::class, IOException::class)
fun readFeed(url: String, maxItems: Int = 5): List<Message> {
val messages = mutableListOf<Message>()
val input = SyndFeedInput()
XmlReader(URL(url).openStream()).use { reader ->
val feed = input.build(reader)
val items = feed.entries
if (items.isEmpty()) {
messages.add(NoticeMessage("There is currently nothing to view."))
} else {
items.take(maxItems).forEach {
messages.add(NoticeMessage(it.title))
messages.add(NoticeMessage(helpFormat(it.link.green(), false)))
}
}
}
return messages
}
}
}

View file

@ -0,0 +1,420 @@
/*
* Mobibot.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
import kotlinx.cli.ArgParser
import kotlinx.cli.ArgType
import kotlinx.cli.default
import net.thauvin.erik.mobibot.Utils.appendIfMissing
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.capitalise
import net.thauvin.erik.mobibot.Utils.getIntProperty
import net.thauvin.erik.mobibot.Utils.helpCmdSyntax
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp
import net.thauvin.erik.mobibot.Utils.lastOrEmpty
import net.thauvin.erik.mobibot.Utils.sendList
import net.thauvin.erik.mobibot.Utils.sendMessage
import net.thauvin.erik.mobibot.Utils.toIsoLocalDate
import net.thauvin.erik.mobibot.commands.*
import net.thauvin.erik.mobibot.commands.Recap.Companion.storeRecap
import net.thauvin.erik.mobibot.commands.links.*
import net.thauvin.erik.mobibot.commands.seen.Seen
import net.thauvin.erik.mobibot.commands.tell.Tell
import net.thauvin.erik.mobibot.modules.*
import org.pircbotx.Configuration
import org.pircbotx.PircBotX
import org.pircbotx.hooks.ListenerAdapter
import org.pircbotx.hooks.events.*
import org.pircbotx.hooks.types.GenericMessageEvent
import org.slf4j.Logger
import org.slf4j.LoggerFactory
import java.io.*
import java.nio.file.Files
import java.nio.file.Paths
import java.util.*
import java.util.regex.Pattern
import kotlin.system.exitProcess
class Mobibot(nickname: String, val channel: String, logsDirPath: String, p: Properties) : ListenerAdapter() {
// The bot configuration.
private val config: Configuration
// Commands and Modules
private val addons: Addons
// Seen command
private val seen: Seen
// Tell command
private val tell: Tell
/** Logger. */
val logger: Logger = LoggerFactory.getLogger(Mobibot::class.java)
/**
* Connects to the server and joins the channel.
*/
fun connect() {
PircBotX(config).startBot()
}
/**
* Responds with the default help.
*/
private fun helpDefault(event: GenericMessageEvent) {
event.sendMessage("Type a URL on $channel to post it.")
event.sendMessage("For more information on a specific command, type:")
event.sendMessage(
helpFormat(
helpCmdSyntax("%c ${Constants.HELP_CMD} <command>", event.bot().nick, event is PrivateMessageEvent)
)
)
event.sendMessage("The commands are:")
event.sendList(addons.names.commands, 8, isBold = true, isIndent = true)
if (event.isChannelOp(channel)) {
if (addons.names.disabledCommands.isNotEmpty()) {
event.sendMessage("The disabled commands are:")
event.sendList(addons.names.disabledCommands, 8, isBold = false, isIndent = true)
}
event.sendMessage("The op commands are:")
event.sendList(addons.names.ops, 8, isBold = true, isIndent = true)
}
}
/**
* Responds with the default, commands or modules help.
*/
private fun helpResponse(event: GenericMessageEvent, topic: String) {
if (topic.isBlank() || !addons.help(channel, topic.lowercase().trim(), event)) {
helpDefault(event)
}
}
override fun onAction(event: ActionEvent?) {
event?.channel?.let {
if (channel == it.name) {
event.user?.let { user ->
storeRecap(user.nick, event.action, true)
}
}
}
}
override fun onDisconnect(event: DisconnectEvent?) {
event?.let {
with(event.getBot<PircBotX>()) {
LinksManager.socialManager.notification("$nick disconnected from $serverHostname")
seen.add(userChannelDao.getChannel(channel).users)
}
}
LinksManager.socialManager.shutdown()
}
override fun onPrivateMessage(event: PrivateMessageEvent?) {
event?.user?.let { user ->
if (logger.isTraceEnabled) logger.trace("<<< ${user.nick}: ${event.message}")
val cmds = event.message.trim().split(" ".toRegex(), 2)
val cmd = cmds[0].lowercase()
val args = cmds.lastOrEmpty().trim()
if (cmd.startsWith(Constants.HELP_CMD)) { // help
helpResponse(event, args)
} else if (!addons.exec(channel, cmd, args, event)) { // Execute command or module
helpDefault(event)
}
}
}
override fun onJoin(event: JoinEvent?) {
event?.user?.let { user ->
with(event.getBot<PircBotX>()) {
if (user.nick == nick) {
LinksManager.socialManager.notification(
"$nick has joined ${event.channel.name} on $serverHostname"
)
seen.add(userChannelDao.getChannel(channel).users)
} else {
tell.send(event)
seen.add(user.nick)
}
}
}
}
override fun onMessage(event: MessageEvent?) {
event?.user?.let { user ->
tell.send(event)
if (event.message.matches("(?i)${Pattern.quote(event.bot().nick)}:.*".toRegex())) { // mobibot: <command>
if (logger.isTraceEnabled) logger.trace(">>> ${user.nick}: ${event.message}")
val cmds = event.message.substring(event.bot().nick.length + 1).trim().split(" ".toRegex(), 2)
val cmd = cmds[0].lowercase()
val args = cmds.lastOrEmpty().trim()
if (cmd.startsWith(Constants.HELP_CMD)) { // mobibot: help
helpResponse(event, args)
} else {
// Execute module or command
addons.exec(channel, cmd, args, event)
}
} else if (addons.match(channel, event)) { // Links, e.g.: https://www.example.com/ or L1: , etc.
if (logger.isTraceEnabled) logger.trace(">>> ${user.nick}: ${event.message}")
}
storeRecap(user.nick, event.message, false)
seen.add(user.nick)
}
}
override fun onNickChange(event: NickChangeEvent?) {
event?.let {
tell.send(event)
if (!it.oldNick.equals(it.newNick, true)) {
seen.add(it.oldNick)
}
seen.add(it.newNick)
}
}
override fun onPart(event: PartEvent?) {
event?.user?.let { user ->
with(event.getBot<PircBotX>()) {
if (user.nick == nick) {
LinksManager.socialManager.notification(
"$nick has left ${event.channel.name} on $serverHostname"
)
seen.add(userChannelDao.getChannel(channel).users)
} else {
seen.add(user.nick)
}
}
}
}
override fun onQuit(event: QuitEvent?) {
event?.user?.let { user ->
seen.add(user.nick)
}
}
companion object {
@JvmStatic
@Throws(Exception::class)
fun main(args: Array<String>) {
// Set up the command line options
val parser = ArgParser(Constants.CLI_CMD)
val debug by parser.option(
ArgType.Boolean,
Constants.DEBUG_ARG,
Constants.DEBUG_ARG.substring(0, 1),
"Print debug & logging data directly to the console"
).default(false)
val property by parser.option(
ArgType.String,
Constants.PROPS_ARG,
Constants.PROPS_ARG.substring(0, 1),
"Use alternate properties file"
).default("./${ReleaseInfo.PROJECT}.properties")
val version by parser.option(
ArgType.Boolean,
Constants.VERSION_ARG,
Constants.VERSION_ARG.substring(0, 1),
"Print version info"
).default(false)
// Parse the command line
parser.parse(args)
if (version) {
// Output the version
println(
"${ReleaseInfo.PROJECT.capitalise()} ${ReleaseInfo.VERSION}" +
" (${ReleaseInfo.BUILD_DATE.toIsoLocalDate()})"
)
println(ReleaseInfo.WEBSITE)
} else {
// Load the properties
val p = Properties()
try {
Files.newInputStream(
Paths.get(property)
).use { fis ->
p.load(fis)
}
} catch (ignore: FileNotFoundException) {
System.err.println("Unable to find properties file.")
exitProcess(1)
} catch (ignore: IOException) {
System.err.println("Unable to open properties file.")
exitProcess(1)
}
val nickname = p.getProperty("nick", Mobibot::class.java.name.lowercase())
val channel = p.getProperty("channel")
val logsDir = p.getProperty("logs", ".").appendIfMissing(File.separatorChar)
// Redirect stdout and stderr
if (!debug) {
try {
val stdout = PrintStream(
BufferedOutputStream(
FileOutputStream(
logsDir + channel.substring(1) + '.' + Utils.today() + ".log", true
)
), true
)
System.setOut(stdout)
} catch (ignore: IOException) {
System.err.println("Unable to open output (stdout) log file.")
exitProcess(1)
}
try {
val stderr = PrintStream(
BufferedOutputStream(
FileOutputStream("$logsDir$nickname.err", true)
), true
)
System.setErr(stderr)
} catch (ignore: IOException) {
System.err.println("Unable to open error (stderr) log file.")
exitProcess(1)
}
}
// Start the bot
Mobibot(nickname, channel, logsDir, p).connect()
}
}
}
/**
* Initialize the bot.
*/
init {
val ircServer = p.getProperty("server", Constants.DEFAULT_SERVER)
config = Configuration.Builder().apply {
name = nickname
login = p.getProperty("login", nickname)
realName = p.getProperty("realname", nickname)
addServer(
ircServer,
p.getIntProperty("port", Constants.DEFAULT_PORT)
)
addAutoJoinChannel(channel)
addListener(this@Mobibot)
version = "${ReleaseInfo.PROJECT} ${ReleaseInfo.VERSION}"
isAutoNickChange = true
val identPwd = p.getProperty("ident")
if (!identPwd.isNullOrBlank()) {
nickservPassword = identPwd
}
val identNick = p.getProperty("ident-nick")
if (!identNick.isNullOrBlank()) {
nickservNick = identNick
}
val identMsg = p.getProperty("ident-msg")
if (!identMsg.isNullOrBlank()) {
nickservCustomMessage = identMsg
}
isAutoReconnect = true
//socketConnectTimeout = Constants.CONNECT_TIMEOUT
//socketTimeout = Constants.CONNECT_TIMEOUT
//messageDelay = StaticDelay(500)
}.buildConfiguration()
// Load the current entries
with(LinksManager) {
entries.channel = channel
entries.ircServer = ircServer
entries.logsDir = logsDirPath
entries.backlogs = p.getProperty("backlogs", "")
entries.load()
// Set up pinboard
pinboard.setApiToken(p.getProperty("pinboard-api-token", ""))
}
addons = Addons(p)
// Load the commands
addons.add(ChannelFeed(channel.removePrefix("#")))
addons.add(Comment())
addons.add(Cycle())
addons.add(Die())
addons.add(Ignore())
addons.add(LinksManager())
addons.add(Me())
addons.add(Modules(addons.names.modules, addons.names.disabledModules))
addons.add(Msg())
addons.add(Nick())
addons.add(Posting())
addons.add(Recap())
addons.add(Say())
// Seen command
seen = Seen("${logsDirPath}${nickname}-seen.ser")
addons.add(seen)
addons.add(Tags())
// Tell command
tell = Tell("${logsDirPath}${nickname}.ser")
addons.add(tell)
addons.add(Users())
addons.add(Versions())
addons.add(View())
// Load social modules
LinksManager.socialManager.add(addons, Mastodon())
// Load the modules
addons.add(Calc())
addons.add(ChatGpt2())
addons.add(CryptoPrices())
addons.add(CurrencyConverter())
addons.add(Dice())
addons.add(Gemini2())
addons.add(GoogleSearch())
addons.add(Info(tell, seen))
addons.add(Joke())
addons.add(Lookup())
addons.add(Ping())
addons.add(RockPaperScissors())
addons.add(StockQuote())
addons.add(War())
addons.add(Weather2())
addons.add(WolframAlpha())
addons.add(WorldTime())
// Sort the addons
addons.names.sort()
}
}

View file

@ -0,0 +1,113 @@
/*
* Pinboard.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
import net.thauvin.erik.mobibot.entries.EntryLink
import net.thauvin.erik.pinboard.PinboardPoster
import java.time.ZoneId
import java.time.ZonedDateTime
import java.time.format.DateTimeFormatter
import java.time.temporal.ChronoUnit
import java.util.*
/**
* Handles posts to pinboard.in.
*/
class Pinboard {
private val poster = PinboardPoster()
/**
* Adds a pin.
*/
fun addPin(ircServer: String, entry: EntryLink) {
if (poster.apiToken.isNotBlank()) {
with(entry) {
poster.addPin(link, title, postedBy(ircServer), formatTags(), date.toTimestamp())
}
}
}
/**
* Sets the pinboard API token.
*/
fun setApiToken(apiToken: String) {
poster.apiToken = apiToken
}
/**
* Deletes a pin.
*/
fun deletePin(entry: EntryLink) {
if (poster.apiToken.isNotBlank()) {
poster.deletePin(entry.link)
}
}
/**
* Updates a pin.
*/
fun updatePin(ircServer: String, oldUrl: String, entry: EntryLink) {
if (poster.apiToken.isNotBlank()) {
with(entry) {
if (oldUrl != link) {
poster.deletePin(oldUrl)
}
poster.addPin(link, title, postedBy(ircServer), formatTags(), date.toTimestamp())
}
}
}
/**
* Formats a date to a UTC timestamp.
*/
private fun Date.toTimestamp(): String {
return ZonedDateTime.ofInstant(
toInstant().truncatedTo(ChronoUnit.SECONDS), ZoneId.systemDefault()
).format(DateTimeFormatter.ISO_INSTANT)
}
/**
* Formats the tags for pinboard.
*/
private fun EntryLink.formatTags(): String {
return nick + formatTags(",", ",")
}
/**
* Returns the pinboard.in extended attribution line.
*/
private fun EntryLink.postedBy(ircServer: String): String {
return "Posted by $nick on $channel ( $ircServer )"
}
}

View file

@ -0,0 +1,28 @@
/*
* This file is automatically generated
* Do not modify! -- ALL CHANGES WILL BE ERASED!
*/
package net.thauvin.erik.mobibot
import java.time.Instant
import java.time.LocalDateTime
import java.time.ZoneId
/**
* Provides release information.
*/
object ReleaseInfo {
const val PROJECT = "mobibot"
const val VERSION = "0.8.0-rc+20250322004101"
@JvmField
@Suppress("MagicNumber")
val BUILD_DATE: LocalDateTime = LocalDateTime.ofInstant(
Instant.ofEpochMilli(1742629261438L), ZoneId.systemDefault()
)
const val WEBSITE = "https://mobitopia.org/mobibot/"
const val AUTHOR = "Erik C. Thauvin"
const val AUTHOR_URL = "https://erik.thauvin.net/"
}

View file

@ -0,0 +1,447 @@
/*
* Utils.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot
import net.thauvin.erik.mobibot.msg.Message
import net.thauvin.erik.mobibot.msg.Message.Companion.DEFAULT_COLOR
import net.thauvin.erik.urlencoder.UrlEncoderUtil
import org.jsoup.Jsoup
import org.pircbotx.Colors
import org.pircbotx.PircBotX
import org.pircbotx.hooks.events.PrivateMessageEvent
import org.pircbotx.hooks.types.GenericMessageEvent
import org.slf4j.Logger
import java.io.*
import java.net.HttpURLConnection
import java.net.URL
import java.nio.file.Files
import java.nio.file.Paths
import java.time.LocalDateTime
import java.time.ZoneId
import java.time.format.DateTimeFormatter
import java.util.*
import kotlin.io.path.exists
import kotlin.io.path.fileSize
/**
* Miscellaneous utilities.
*/
@Suppress("TooManyFunctions")
object Utils {
private val searchFlags = arrayOf("%c", "%n")
/**
* Prepends a prefix if not present.
*/
@JvmStatic
fun String.prefixIfMissing(prefix: Char): String {
return if (first() != prefix) {
"$prefix${this}"
} else {
this
}
}
/**
* Appends a suffix to the end of the String if not present.
*/
@JvmStatic
fun String.appendIfMissing(suffix: Char): String {
return if (last() != suffix) {
"$this${suffix}"
} else {
this
}
}
/**
* Makes the given int bold.
*/
@JvmStatic
fun Int.bold(): String = toString().bold()
/**
* Makes the given long bold.
*/
@JvmStatic
fun Long.bold(): String = toString().bold()
/**
* Makes the given string bold.
*/
@JvmStatic
fun String?.bold(): String = colorize(Colors.BOLD)
/**
* Returns the [PircBotX] instance.
*/
fun GenericMessageEvent.bot(): PircBotX {
return getBot() as PircBotX
}
/**
* Capitalize a string.
*/
@JvmStatic
fun String.capitalise(): String = lowercase().replaceFirstChar { it.uppercase() }
/**
* Capitalize words
*/
@JvmStatic
fun String.capitalizeWords(): String = split(" ").joinToString(" ") { it.capitalise() }
/**
* Colorize a string.
*/
@JvmStatic
fun String?.colorize(color: String): String {
return when {
isNullOrEmpty() -> {
""
}
color == DEFAULT_COLOR -> {
this
}
Colors.BOLD == color || Colors.REVERSE == color -> {
color + this + color
}
else -> {
color + this + Colors.NORMAL
}
}
}
/**
* Makes the given string cyan.
*/
@JvmStatic
fun String?.cyan(): String = colorize(Colors.CYAN)
/**
* URL encodes the given string.
*/
@JvmStatic
fun String.encodeUrl(): String = UrlEncoderUtil.encode(this)
/**
* Returns a property as an int.
*/
@JvmStatic
fun Properties.getIntProperty(key: String, defaultValue: Int): Int {
return getProperty(key)?.toIntOrDefault(defaultValue) ?: defaultValue
}
/**
* Makes the given string green.
*/
@JvmStatic
fun String?.green(): String = colorize(Colors.DARK_GREEN)
/**
* Build a help command by replacing `%c` with the bot's pub/priv command, and `%n` with the bot's
* nick.
*/
@JvmStatic
fun helpCmdSyntax(text: String, botNick: String, isPrivate: Boolean): String {
val replace = arrayOf(if (isPrivate) "/msg $botNick" else "$botNick:", botNick)
return text.replaceEach(searchFlags, replace)
}
/**
* Returns a formatted help string.
*/
@JvmStatic
@JvmOverloads
fun helpFormat(help: String, isBold: Boolean = true, isIndent: Boolean = true): String {
val s = if (isBold) help.bold() else help
return if (isIndent) s.prependIndent() else s
}
/**
* Returns `true` if the specified user is an operator on the [channel].
*/
@JvmStatic
fun GenericMessageEvent.isChannelOp(channel: String): Boolean {
return this.bot().userChannelDao.getChannel(channel).isOp(this.user)
}
/**
* Returns `true` if a HTTP status code indicates a successful response.
*/
@JvmStatic
fun Int.isHttpSuccess() = this in 200..399
/**
* Returns the last item of a list of strings or empty if none.
*/
@JvmStatic
fun List<String>.lastOrEmpty(): String {
return if (this.size >= 2) {
this.last()
} else
""
}
/**
* Load serial data from file.
*/
@JvmStatic
fun loadSerialData(file: String, default: Any, logger: Logger, description: String): Any {
val serialFile = Paths.get(file)
if (serialFile.exists() && serialFile.fileSize() > 0) {
try {
ObjectInputStream(
BufferedInputStream(Files.newInputStream(serialFile))
).use { input ->
if (logger.isDebugEnabled) logger.debug("Loading the ${description}.")
return input.readObject()
}
} catch (e: IOException) {
logger.error("An IO error occurred loading the ${description}.", e)
} catch (e: ClassNotFoundException) {
logger.error("An error occurred loading the ${description}.", e)
}
}
return default
}
/**
* Returns `true` if the list does not contain the given string.
*/
@JvmStatic
fun List<String>.notContains(text: String, ignoreCase: Boolean = false) = this.none { it.equals(text, ignoreCase) }
/**
* Obfuscates the given string.
*/
@JvmStatic
fun String.obfuscate(): String {
return if (isNotBlank()) {
"x".repeat(length)
} else this
}
/**
* Returns the plural form of a word, if count &gt; 1.
*/
@JvmStatic
fun String.plural(count: Long): String {
return if (count > 1) "${this}s" else this
}
/**
* Makes the given string red.
*/
@JvmStatic
fun String?.red(): String = colorize(Colors.RED)
/**
* Replaces all occurrences of Strings within another String.
*/
@JvmStatic
fun String.replaceEach(search: Array<out String>, replace: Array<out String>): String {
var result = this
if (search.size == replace.size) {
search.forEachIndexed { i, s ->
result = result.replace(s, replace[i])
}
}
return result
}
/**
* Makes the given string reverse color.
*/
@JvmStatic
fun String?.reverseColor(): String = colorize(Colors.REVERSE)
/**
* Save data
*/
@JvmStatic
fun saveSerialData(file: String, data: Any, logger: Logger, description: String) {
try {
BufferedOutputStream(Files.newOutputStream(Paths.get(file))).use { bos ->
ObjectOutputStream(bos).use { output ->
if (logger.isDebugEnabled) logger.debug("Saving the ${description}.")
output.writeObject(data)
}
}
} catch (e: IOException) {
logger.error("Unable to save the ${description}.", e)
}
}
/**
* Send a formatted commands/modules, etc. list.
*/
@JvmStatic
@JvmOverloads
fun GenericMessageEvent.sendList(
list: List<String>,
maxPerLine: Int,
separator: String = " ",
isBold: Boolean = false,
isIndent: Boolean = false
) {
var i = 0
while (i < list.size) {
sendMessage(
helpFormat(
list.subList(i, list.size.coerceAtMost(i + maxPerLine)).joinToString(separator, truncated = ""),
isBold,
isIndent
),
)
i += maxPerLine
}
}
/**
* Sends a [message].
*/
@JvmStatic
fun GenericMessageEvent.sendMessage(channel: String, message: Message) {
if (message.isNotice) {
bot().sendIRC().notice(user.nick, message.msg.colorize(message.color))
} else if (message.isPrivate || this is PrivateMessageEvent || channel.isBlank()) {
respondPrivateMessage(message.msg.colorize(message.color))
} else {
bot().sendIRC().message(channel, message.msg.colorize(message.color))
}
}
/**
* Sends a response as a private message or notice.
*/
@JvmStatic
fun GenericMessageEvent.sendMessage(message: String) {
if (this is PrivateMessageEvent) {
respondPrivateMessage(message)
} else {
bot().sendIRC().notice(user.nick, message)
}
}
/**
* Returns today's date.
*/
@JvmStatic
fun today(): String = LocalDateTime.now().toIsoLocalDate()
/**
* Converts a string to an int.
*/
@JvmStatic
fun String.toIntOrDefault(defaultValue: Int): Int {
return try {
toInt()
} catch (e: NumberFormatException) {
defaultValue
}
}
/**
* Returns the specified date as an ISO local date string.
*/
@JvmStatic
fun Date.toIsoLocalDate(): String {
return LocalDateTime.ofInstant(toInstant(), ZoneId.systemDefault()).toIsoLocalDate()
}
/**
* Returns the specified date as an ISO local date string.
*/
@JvmStatic
fun LocalDateTime.toIsoLocalDate(): String = format(DateTimeFormatter.ISO_LOCAL_DATE)
/**
* Returns the specified date formatted as `yyyy-MM-dd HH:mm`.
*/
@JvmStatic
fun Date.toUtcDateTime(): String {
return LocalDateTime.ofInstant(toInstant(), ZoneId.systemDefault()).toUtcDateTime()
}
/**
* Returns the specified date formatted as `yyyy-MM-dd HH:mm`.
*/
@JvmStatic
fun LocalDateTime.toUtcDateTime(): String = format(DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"))
/**
* Makes the given string bold.
*/
@JvmStatic
fun String?.underline(): String = colorize(Colors.UNDERLINE)
/**
* Converts XML/XHTML entities to plain text.
*/
@JvmStatic
fun String.unescapeXml(): String = Jsoup.parse(this).text()
/**
* Reads contents of a URL.
*/
@JvmStatic
@Throws(IOException::class)
fun URL.reader(): UrlReaderResponse {
val connection = this.openConnection() as HttpURLConnection
try {
connection.setRequestProperty(
"User-Agent",
Constants.USER_AGENT
)
return if (connection.responseCode.isHttpSuccess()) {
UrlReaderResponse(
connection.responseCode,
connection.inputStream.bufferedReader().use { it.readText() })
} else {
UrlReaderResponse(
connection.responseCode,
connection.errorStream.bufferedReader().use { it.readText() })
}
} finally {
connection.disconnect()
}
}
/**
* Holds the [URL.reader] response code and body text.
*/
data class UrlReaderResponse(val responseCode: Int, val body: String)
}

View file

@ -0,0 +1,79 @@
/*
* AbstractCommand.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.helpCmdSyntax
import net.thauvin.erik.mobibot.Utils.isChannelOp
import net.thauvin.erik.mobibot.Utils.sendMessage
import org.pircbotx.hooks.events.PrivateMessageEvent
import org.pircbotx.hooks.types.GenericMessageEvent
abstract class AbstractCommand {
abstract val name: String
abstract val help: List<String>
abstract val isOpOnly: Boolean
abstract val isPublic: Boolean
abstract val isVisible: Boolean
val properties: MutableMap<String, String> = mutableMapOf()
abstract fun commandResponse(channel: String, args: String, event: GenericMessageEvent)
open fun helpResponse(channel: String, topic: String, event: GenericMessageEvent): Boolean {
if (!isOpOnly || isOpOnly == event.isChannelOp(channel)) {
for (h in help) {
event.sendMessage(helpCmdSyntax(h, event.bot().nick, event is PrivateMessageEvent || !isPublic))
}
return true
}
return false
}
open fun initProperties(vararg keys: String) {
keys.forEach {
properties[it] = ""
}
}
open fun isEnabled(): Boolean {
return true
}
open fun matches(message: String): Boolean {
return false
}
open fun setProperty(key: String, value: String) {
properties[key] = value
}
}

View file

@ -0,0 +1,62 @@
/*
* ChannelFeed.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.FeedReader
import net.thauvin.erik.mobibot.Utils.helpFormat
import org.pircbotx.hooks.types.GenericMessageEvent
class ChannelFeed(channel: String) : AbstractCommand() {
override val name = channel
override val help = listOf("To list the last 5 posts from the channel's weblog feed:", helpFormat("%c $channel"))
override val isOpOnly = false
override val isPublic = true
override val isVisible = true
companion object {
const val FEED_PROP = "feed"
}
init {
initProperties(FEED_PROP)
}
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
if (isEnabled()) {
properties[FEED_PROP]?.let { FeedReader(it, event).run() }
}
}
override fun isEnabled(): Boolean {
return !properties[FEED_PROP].isNullOrBlank()
}
}

View file

@ -0,0 +1,66 @@
/*
* Cycle.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.runBlocking
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp
import org.pircbotx.hooks.types.GenericMessageEvent
class Cycle : AbstractCommand() {
private val wait = 10
override val name = "cycle"
override val help = listOf("To have the bot leave the channel and come back:", helpFormat("%c $name"))
override val isOpOnly = true
override val isPublic = false
override val isVisible = true
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
with(event.bot()) {
if (event.isChannelOp(channel)) {
runBlocking {
launch {
sendIRC().message(channel, "${event.user.nick} asked me to leave. I'll be back!")
userChannelDao.getChannel(channel).send().part()
delay(wait * 1000L)
sendIRC().joinChannel(channel)
}
}
} else {
helpResponse(channel, args, event)
}
}
}
}

View file

@ -0,0 +1,62 @@
/*
* Die.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.isChannelOp
import org.pircbotx.hooks.types.GenericMessageEvent
class Die : AbstractCommand() {
override val name = "die"
override val help = emptyList<String>()
override val isOpOnly = true
override val isPublic = false
override val isVisible = false
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
with(event.bot()) {
if (event.isChannelOp(channel) && (properties[DIE_PROP].isNullOrBlank() || args == properties[DIE_PROP])) {
sendIRC().message(channel, "${event.user?.nick} has just signed my death sentence.")
stopBotReconnect()
sendIRC().quitServer("The Bot is Out There!")
}
}
}
companion object {
const val DIE_PROP = "die"
}
init {
initProperties(DIE_PROP)
}
}

View file

@ -0,0 +1,146 @@
/*
* Ignore.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.Utils.bold
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.helpCmdSyntax
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp
import net.thauvin.erik.mobibot.Utils.sendList
import net.thauvin.erik.mobibot.Utils.sendMessage
import net.thauvin.erik.mobibot.commands.links.LinksManager
import org.pircbotx.hooks.types.GenericMessageEvent
class Ignore : AbstractCommand() {
private val me = "me"
init {
initProperties(IGNORE_PROP)
}
override val name = IGNORE_CMD
override val help = listOf(
"To ignore a link posted to the channel:",
helpFormat("https://www.foo.bar %n"),
"To check your ignore status:",
helpFormat("%c $name"),
"To toggle your ignore status:",
helpFormat("%c $name $me")
)
private val helpOp = help.plus(
arrayOf("To add/remove nicks from the ignored list:", helpFormat("%c $name <nick> [<nick> ...]"))
)
override val isOpOnly = false
override val isPublic = true
override val isVisible = true
companion object {
const val IGNORE_CMD = "ignore"
const val IGNORE_PROP = IGNORE_CMD
private val ignored = mutableSetOf<String>()
@JvmStatic
fun isNotIgnored(nick: String): Boolean {
return !ignored.contains(nick.lowercase())
}
}
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
val isMe = args.trim().equals(me, true)
if (isMe || !event.isChannelOp(channel)) {
val nick = event.user.nick.lowercase()
ignoreNick(nick, isMe, event)
} else {
ignoreOp(args, event)
}
}
override fun helpResponse(channel: String, topic: String, event: GenericMessageEvent): Boolean {
return if (event.isChannelOp(channel)) {
for (h in helpOp) {
event.sendMessage(helpCmdSyntax(h, event.bot().nick, true))
}
true
} else {
super.helpResponse(channel, topic, event)
}
}
private fun ignoreNick(sender: String, isMe: Boolean, event: GenericMessageEvent) {
if (isMe) {
if (ignored.remove(sender)) {
event.sendMessage("You are no longer ignored.")
} else {
ignored.add(sender)
event.sendMessage("You are now ignored.")
}
} else {
if (ignored.contains(sender)) {
event.sendMessage("You are currently ignored.")
} else {
event.sendMessage("You are not currently ignored.")
}
}
}
private fun ignoreOp(args: String, event: GenericMessageEvent) {
if (args.isNotEmpty()) {
val nicks = args.lowercase().split(" ")
for (nick in nicks) {
val ignore = if (me == nick) {
nick.lowercase()
} else {
nick
}
if (!ignored.remove(ignore)) {
ignored.add(ignore)
}
}
}
if (ignored.isNotEmpty()) {
event.sendMessage("The following nicks are ignored:")
event.sendList(ignored.sorted(), 8, isIndent = true)
} else {
event.sendMessage("No one is currently ${"ignored".bold()}.")
}
}
override fun setProperty(key: String, value: String) {
super.setProperty(key, value)
if (IGNORE_PROP == key) {
ignored.addAll(value.split(LinksManager.TAG_MATCH))
}
}
}

View file

@ -0,0 +1,124 @@
/*
* Info.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.ReleaseInfo
import net.thauvin.erik.mobibot.Utils.capitalise
import net.thauvin.erik.mobibot.Utils.green
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp
import net.thauvin.erik.mobibot.Utils.plural
import net.thauvin.erik.mobibot.Utils.sendList
import net.thauvin.erik.mobibot.Utils.sendMessage
import net.thauvin.erik.mobibot.commands.links.LinksManager
import net.thauvin.erik.mobibot.commands.seen.Seen
import net.thauvin.erik.mobibot.commands.tell.Tell
import org.pircbotx.hooks.types.GenericMessageEvent
import java.lang.management.ManagementFactory
import kotlin.time.DurationUnit
import kotlin.time.toDuration
class Info(private val tell: Tell, private val seen: Seen) : AbstractCommand() {
private val allVersions = listOf(
"${ReleaseInfo.PROJECT.capitalise()} ${ReleaseInfo.VERSION} (${ReleaseInfo.WEBSITE.green()})",
"Written by ${ReleaseInfo.AUTHOR} (${ReleaseInfo.AUTHOR_URL.green()})"
)
override val name = "info"
override val help = listOf("To view information about the bot:", helpFormat("%c $name"))
override val isOpOnly = false
override val isPublic = true
override val isVisible = true
companion object {
/**
* Converts milliseconds to year month week day hour and minutes.
*/
@JvmStatic
fun Long.toUptime(): String {
this.toDuration(DurationUnit.MILLISECONDS).toComponents { wholeDays, hours, minutes, seconds, _ ->
val years = wholeDays / 365
var days = wholeDays % 365
val months = days / 30
days %= 30
val weeks = days / 7
days %= 7
with(StringBuffer()) {
if (years > 0) {
append(years).append(" year".plural(years)).append(' ')
}
if (months > 0) {
append(months).append(" month".plural(months)).append(' ')
}
if (weeks > 0) {
append(weeks).append(" week".plural(weeks)).append(' ')
}
if (days > 0) {
append(days).append(" day".plural(days)).append(' ')
}
if (hours > 0) {
append(hours).append(" hour".plural(hours.toLong())).append(' ')
}
if (minutes > 0) {
append(minutes).append(" minute".plural(minutes.toLong()))
} else {
append(seconds).append(" second".plural(seconds.toLong()))
}
return toString()
}
}
}
}
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
event.sendList(allVersions, 1)
val info = StringBuilder()
info.append("Uptime: ")
.append(ManagementFactory.getRuntimeMXBean().uptime.toUptime())
.append(" [Entries: ")
.append(LinksManager.entries.links.size)
if (seen.isEnabled()) {
info.append(", Seen: ").append(seen.count())
}
if (event.isChannelOp(channel)) {
if (tell.isEnabled()) {
info.append(", Messages: ").append(tell.size())
}
if (LinksManager.socialManager.entriesCount() > 0) {
info.append(", Social: ").append(LinksManager.socialManager.entriesCount())
}
}
info.append(", Recap: ").append(Recap.recaps.size).append(']')
event.sendMessage(info.toString())
}
}

View file

@ -0,0 +1,51 @@
/*
* Me.kt
*
* Copyright 2004-2025 Erik C. Thauvin (erik@thauvin.net)
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* Neither the name of this project nor the names of its contributors may be
* used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
package net.thauvin.erik.mobibot.commands
import net.thauvin.erik.mobibot.Utils.bot
import net.thauvin.erik.mobibot.Utils.helpFormat
import net.thauvin.erik.mobibot.Utils.isChannelOp
import org.pircbotx.hooks.types.GenericMessageEvent
class Me : AbstractCommand() {
override val name = "me"
override val help = listOf("To have the bot perform an action:", helpFormat("%c $name <action>"))
override val isOpOnly = true
override val isPublic = false
override val isVisible = true
override fun commandResponse(channel: String, args: String, event: GenericMessageEvent) {
if (event.isChannelOp(channel)) {
event.bot().sendIRC().action(channel, args)
}
}
}

Some files were not shown because too many files have changed in this diff Show more