oebot
Version:
OEBot 命令行工具
28 lines (20 loc) • 628 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.js_template = void 0;
exports.js_template = `
const { OEPlugin, segment } = require('@oebot/core')
const { version } = require('./package.json')
const plugin = new OEPlugin('xxx', version)
const config = {}
plugin.onMounted((bot, admins) => {
plugin.saveConfig(Object.assign(config, plugin.loadConfig()))
plugin.onMessage((event, bot) => {
const { raw_message } = event
if (raw_message === 'hello') {
const msgs = [segment.face(66), 'world']
event.reply(msgs)
}
})
})
module.exports = { plugin }
`.trim();