wuhu-takeoff/index.js

14 lines
280 B
JavaScript
Raw Permalink Normal View History

2023-01-06 10:46:08 +08:00
const { KiviPlugin } = require("@kivibot/core");
2023-01-06 10:20:01 +08:00
2023-01-06 10:46:08 +08:00
const plugin = new KiviPlugin("wuhu-takeoff", "1.0.0");
2023-01-06 10:20:01 +08:00
plugin.onMounted(() => {
2023-01-06 10:46:08 +08:00
plugin.onMessage((event) => {
if (event.raw_message == "芜湖") {
event.reply("起飞");
2023-01-06 10:20:01 +08:00
}
2023-01-06 10:46:08 +08:00
});
});
2023-01-06 10:20:01 +08:00
2023-01-06 10:46:08 +08:00
module.exports = { plugin };