Plugins-oriented bot
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
InsanusMokrassar 9eff09ca68
Merge pull request #62 from InsanusMokrassar/3.3.1
1 week ago
.fleet start 3.2.0 2 months ago
.github/workflows remove redundant config test and update build workflow 8 months ago
badges update readme 2 years ago
bot add gitea publication 2 months ago
gradle Update libs.versions.toml 1 week ago
plugin add gitea publication 2 months ago
.gitattributes Initial commit 2 years ago
.gitignore update dependencies and add logging 8 months ago
CHANGELOG.md Update CHANGELOG.md 1 week ago
LICENSE Initial commit 2 years ago
README.md fill readme + rename fallback state handler 6 months ago
_config.yml Set theme jekyll-theme-cayman 2 years ago
build.gradle add own repo 2 months ago
changelog_parser.sh add github workaround 2 years ago
github_release.gradle Update github_release.gradle 7 months ago
gradle.properties Update gradle.properties 1 week ago
gradlew Initial commit 2 years ago
gradlew.bat Initial commit 2 years ago
settings.gradle remove redundant modules 6 months ago
template.config.json improve reconnect feature 5 months ago

README.md

PlaguBot

For users

Template: Use template

You can create your bot using this template by following of its instructions

For developers

Template: Use template
Bot version: Maven Central
Plugin version: Maven Central

That is a set of libraries for plagubots. Look at the PlaguBot Plugin template to find how to create your bot.

Technical help

In this bot has been used variant with FSM. That means that you may use all the Behaviour Builder with FSM functionality. In case you wish to setup states repo, you should use the next code in the setupDI of your plugin:

single<StatesManager<State>> {
    // setup your manager and return here
    // Default is:
    DefaultStatesManager(
        InMemoryDefaultStatesManagerRepo()
    )
}

Besides, you may setup handling errors lambda in the same function:

single<StateHandlingErrorHandler<State>> {
    { state, e ->
        logger.eS(e) { "Unable to handle state $state" } // logging by default
        null // you should return new state or null, default callback will return null
    }
}