botan

It is determined whether or not the haiku

License

License

GroupId

GroupId

com.github.masahitojp
ArtifactId

ArtifactId

botan
Last Version

Last Version

0.0.0.24
Release Date

Release Date

Type

Type

jar
Description

Description

botan
It is determined whether or not the haiku
Project URL

Project URL

https://github.com/masahitojp/botan
Source Code Management

Source Code Management

https://github.com/masahitojp/botan.git

Download botan

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.masahitojp/botan/ -->
<dependency>
    <groupId>com.github.masahitojp</groupId>
    <artifactId>botan</artifactId>
    <version>0.0.0.24</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.masahitojp/botan/
implementation 'com.github.masahitojp:botan:0.0.0.24'
// https://jarcasting.com/artifacts/com.github.masahitojp/botan/
implementation ("com.github.masahitojp:botan:0.0.0.24")
'com.github.masahitojp:botan:jar:0.0.0.24'
<dependency org="com.github.masahitojp" name="botan" rev="0.0.0.24">
  <artifact name="botan" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.masahitojp', module='botan', version='0.0.0.24')
)
libraryDependencies += "com.github.masahitojp" % "botan" % "0.0.0.24"
[com.github.masahitojp/botan "0.0.0.24"]

Dependencies

compile (6)

Group / Artifact Type Version
org.igniterealtime.smack : smack-tcp jar 4.1.3
org.slf4j : slf4j-api jar 1.7.12
org.igniterealtime.smack : smack-java7 jar 4.1.3
org.reflections : reflections jar 0.9.10
org.igniterealtime.smack : smack-im jar 4.1.3
org.igniterealtime.smack : smack-extensions jar 4.1.3

test (3)

Group / Artifact Type Version
junit : junit jar 4.12
ch.qos.logback : logback-classic jar 1.1.3
org.hamcrest : java-hamcrest jar 2.0.0.0

Project Modules

There are no modules declared in this project.

botan(牡丹)

Join the chat at https://gitter.im/masahitojp/botan-core

Circle CI

Maven Central

Known Vulnerabilities

botan Tiny chat bot framework for Java SE 8.(like a Hubot)

requirement

Java8

Getting Started

Write simple java application

package com.github.masahitojp.implementation;

import com.github.masahitojp.botan.Botan;
import com.github.masahitojp.botan.exception.BotanException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class SlackBot {

    static public void main(final String[] Args) {

        final Botan botan = new Botan.BotanBuilder()
                .build();
        try {
            botan.start();
        } catch (final BotanException ex) {
            log.warn(ex.getMessage());
        }

    }
}
package com.github.masahitojp.implementation.handlers;

import com.github.masahitojp.botan.Robot;
import com.github.masahitojp.botan.handler.BotanMessageHandlers;

@SuppressWarnings("unused")
public class PingMessageHandlers implements BotanMessageHandlers {

    @Override
    public void register(final Robot robot) {
        robot.respond(
                "ping\z",
                "ping method",
                message -> message.reply("pong")
        );
    }
}

if you want to more examples, see sample project.

Add dependency to your build.gradle

apply plugin: 'java'

repositories.mavenCentral()

dependencies {
	compile 'com.github.masahitojp:botan-core:0.6.+'
}

sourceCompatibility = targetCompatibility = 1.8

Run and View

show your slack team

Features

Currently, supports following adapters and brains:

License

Apache License, Version 2.0

Special Thanks

  • @_pochi -san wrote a nice logo. Thanks!!

Inspired projects

How to write Handlers

  • create class which implements BotanMessageHandlers.
  • Override register method
    • Robot#respond
package com.github.masahitojp.implementation.handlers;

import com.github.masahitojp.botan.Robot;
import com.github.masahitojp.botan.handler.BotanMessageHandlers;

@SuppressWarnings("unused")
public class PingMessageHandlers implements BotanMessageHandlers {

    @Override
    public void register(final Robot robot) {
        robot.respond(
                "ping\z",
                "ping method",
                message -> message.reply("pong")
        );
    }
}

Versions

Version
0.0.0.24
0.0.0.23
0.0.0.22
0.0.0.21
0.0.0.20
0.0.0.19
0.0.0.18
0.0.0.17
0.0.0.16
0.0.0.15
0.0.0.14
0.0.0.13
0.0.0.12
0.0.0.11
0.0.0.10
0.0.0.9
0.0.0.8
0.0.0.7
0.0.0.6
0.0.0.5
0.0.0.4
0.0.0.3
0.0.0.2
0.0.0.1