Updated copyright

This commit is contained in:
Erik C. Thauvin 2024-01-16 10:21:27 -08:00
parent c684332b9d
commit 3c4e76e5b9
102 changed files with 344 additions and 109 deletions

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>

View file

@ -1,7 +1,7 @@
/*
* MobibotBuild.java
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:
@ -70,7 +70,7 @@ public class MobibotBuild extends Project {
repositories = List.of(MAVEN_LOCAL, MAVEN_CENTRAL, new Repository("https://jitpack.io")
);
var log4j = version(2, 22, 0);
var log4j = version(2, 22, 1);
var kotlin = version(1, 9, 22);
scope(compile)
// PircBotX
@ -83,7 +83,7 @@ public class MobibotBuild extends Project {
// Google
.include(dependency("com.google.code.gson", "gson", "2.10.1"))
.include(dependency("com.google.guava", "guava", "33.0.0-jre"))
.include(dependency("com.google.cloud", "google-cloud-vertexai", version(0, 1, 0)))
.include(dependency("com.google.cloud", "google-cloud-vertexai", version(0, 2, 0)))
// Kotlin
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib", kotlin))
.include(dependency("org.jetbrains.kotlin", "kotlin-stdlib-jdk7", kotlin))
@ -91,7 +91,7 @@ public class MobibotBuild extends Project {
.include(dependency("org.jetbrains.kotlinx", "kotlinx-coroutines-core", "1.7.3"))
.include(dependency("org.jetbrains.kotlinx", "kotlinx-cli-jvm", "0.3.6"))
// Logging
.include(dependency("org.slf4j", "slf4j-api", "2.0.9"))
.include(dependency("org.slf4j", "slf4j-api", "2.0.11"))
.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))
@ -101,7 +101,7 @@ public class MobibotBuild extends Project {
.include(dependency("net.aksingh", "owm-japis", "2.5.3.0"))
.include(dependency("net.objecthunter", "exp4j", "0.4.8"))
.include(dependency("org.json", "json", "20231013"))
.include(dependency("org.jsoup", "jsoup", "1.17.1"))
.include(dependency("org.jsoup", "jsoup", "1.17.2"))
// Thauvin
.include(dependency("net.thauvin.erik", "cryptoprice", "1.0.2"))
.include(dependency("net.thauvin.erik", "jokeapi", "0.9.1"))

View file

@ -1,7 +1,7 @@
/*
* Addons.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Constants.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* FeedReader.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Mobibot.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Pinboard.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -14,12 +14,12 @@ import java.time.ZoneId
*/
object ReleaseInfo {
const val PROJECT = "mobibot"
const val VERSION = "0.8.0-rc+20231224114859"
const val VERSION = "0.8.0-rc+20240116102134"
@JvmField
@Suppress("MagicNumber")
val BUILD_DATE: LocalDateTime = LocalDateTime.ofInstant(
Instant.ofEpochMilli(1703447340121L), ZoneId.systemDefault()
Instant.ofEpochMilli(1705429295075L), ZoneId.systemDefault()
)
const val WEBSITE = "https://mobitopia.org/mobibot/"

View file

@ -1,7 +1,7 @@
/*
* Utils.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* AbstractCommand.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ChannelFeed.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Cycle.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Die.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Ignore.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Info.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Me.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Modules.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Msg.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Nick.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Recap.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Say.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Users.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Versions.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Comment.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* LinksManager.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Posting.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Tags.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* View.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* NickComparator.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Seen.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* SeenNick.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Tell.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* TellManager.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* TellMessage.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Entries.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* EntriesUtils.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* EntryComment.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* EntryLink.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* FeedsManager.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* AbstractModule.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Calc.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ChatGpt.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* CryptoPrices.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* CurrencyConverter.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Dice.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,3 +1,34 @@
/*
* Gemini.kt
*
* Copyright 2004-2024 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.modules
import com.google.cloud.vertexai.VertexAI
@ -63,7 +94,7 @@ class Gemini : AbstractModule() {
*/
const val MAX_TOKENS_PROP = "gemini-max-tokens"
// ChatGPT command
// Gemini command
private const val GEMINI_CMD = "gemini"
@JvmStatic

View file

@ -1,7 +1,7 @@
/*
* GoogleSearch.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Joke.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Lookup.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Mastodon.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ModuleException.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Ping.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* RockPaperScissors.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* StockQuote.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* War.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Weather2.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* WolframAlpha.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* WorldTime.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ErrorMessage.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Message.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* NoticeMessage.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* PrivateMessage.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* PublicMessage.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* SocialManager.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* SocialModule.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* SocialTimer.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* AddonsTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* DisableOnCi.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* DisableOnCiCondition.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ExceptionSanitizer.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* FeedReaderTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* LocalProperties.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* PinboardTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* UtilsTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* InfoTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* RecapTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* LinksManagerTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ViewTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* SeenTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* TellMessageTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* TellMessagesMgrTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* EntriesUtilsTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* EntryLinkTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* FeedMgrTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* CalcTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ChatGptTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* CryptoPricesTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* CurrencyConverterTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* DiceTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ChatGptTest.kt
* GeminiTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* GoogleSearchTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* JokeTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* LookupTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:
@ -44,8 +44,8 @@ class LookupTest {
var result = nslookup("apple.com")
assertThat(result, "lookup(apple.com)").contains("17.253.144.10")
result = nslookup("204.122.16.136")
assertThat(result, "lookup(204.122.16.136)").contains("nix3.thauvin.us")
result = nslookup("37.27.52.13")
assertThat(result, "lookup(37.27.52.13)").contains("nix4.thauvin.us")
}
@Test

View file

@ -1,7 +1,7 @@
/*
* MastodonTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* ModuleExceptionTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* PingTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* RockPaperScissorsTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* StockQuoteTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* Weather2Test.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

View file

@ -1,7 +1,7 @@
/*
* WolframAlphaTest.kt
*
* Copyright 2004-2023 Erik C. Thauvin (erik@thauvin.net)
* Copyright 2004-2024 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:

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