initial commit

This commit is contained in:
jbb01
2023-09-12 19:47:07 +02:00
commit eadf1eaf5b
57 changed files with 3407 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
plugins {
id("chat-bot.bot-conventions")
}
group = "eu.jonahbauer.chat.bots"
version = "0.1.0-SNAPSHOT"

View File

@@ -0,0 +1,19 @@
package eu.jonahbauer.chat.bot.ping;
import eu.jonahbauer.chat.bot.api.ChatBot;
import eu.jonahbauer.chat.bot.api.Message;
import org.jetbrains.annotations.NotNull;
public class PingBot extends ChatBot {
public PingBot() {
super("Ping");
}
@Override
protected void onMessage(Message.@NotNull Post message) {
if (message.message().equals("!ping")) {
post("pong");
}
}
}

View File

@@ -0,0 +1,10 @@
import eu.jonahbauer.chat.bot.api.ChatBot;
import eu.jonahbauer.chat.bot.ping.PingBot;
module eu.jonahbauer.chat.bot.ping {
requires eu.jonahbauer.chat.bot.api;
requires org.apache.logging.log4j;
requires static lombok;
provides ChatBot with PingBot;
}