Skip to content
This repository has been archived by the owner on Mar 6, 2024. It is now read-only.
/ core Public archive

Simple Robot v4 临时开发仓库

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING
Notifications You must be signed in to change notification settings

simple-robot/core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Simple Robot v4

Important

此仓库是 Simple Robot v4 版本的临时开发仓库,会在大部分基本工作都完成或接近尾声的时候合并至 主仓库 的相关分支并移除此仓库。

Warning

本仓库内容已经迁移至 simpler-robot v4-dev分支

val application = launchApplication(Simple) {
    config {
        // 部分配置属性...
    }

    eventDispatcher {
        // 事件调度器配置....
    }

    // 安装组件或插件
    install(...)
}

// 使用事件调度器
val eventDispatcher = application.eventDispatcher

eventDispatcher.register {
    // 注册事件处理器
}

eventDispatcher.listen<FooEvent> { event -> // this: EventContext
    // 指定类型地注册事件处理器
}

// push(event) -> Flow<EventResult>
eventDispatcher.push(event).collect {
    // ...
}

// 使用Bot管理器
val botManager = application.botManagers.get<FooBotManager>()

// ...

About

Simple Robot v4 临时开发仓库

Topics

Resources

License

LGPL-3.0, GPL-3.0 licenses found

Licenses found

LGPL-3.0
COPYING.LESSER
GPL-3.0
COPYING

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

Packages

No packages published

Languages