Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Miaow233/MEJS-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MEJS-Framework

关于本框架

MEJS Framework 是为 Medic 设计的 JS 词库开发框架. 基于 Javet, 使用 TS 编写, 提供了丰富的 API 功能.

特性

  • 符合直觉的接口
  • 丰富的 API 功能
  • 对常用功能进行了封装, 便于简化操作
  • 支持调用 Java (Javet)
  • 易于开发

如何使用

将本项目所有文件解压到词库目录, 然后在 hdic.js 中导入即可.

import { Bot, Session, api } from './src/index.js'
const Event = Bot.Event
Event.on('message', async (session) => {
  if (session.content === 'test') {
    session.send(`Hello, ${session.sender}`)
  }
})

index.js 文件默认导入全部模块, 如有需要请逐个导入.

更多示例请参考 hdic.js.

使用文档[建设中] https://docs.nekohouse.cafe

API 参考 https://docs.nekohouse.cafe/type

Alt