First commit

This commit is contained in:
Zhao Zuohong 2023-01-06 17:14:30 +08:00
commit e0d339d296
1 changed files with 13 additions and 0 deletions

13
index.js Normal file
View File

@ -0,0 +1,13 @@
const { KiviPlugin } = require("@kivibot/core");
const plugin = new KiviPlugin("demo", "0.1.0");
plugin.onMounted(() => {
plugin.cron("0 8 * * *", (bot, admins) => {
admins.forEach((admin) => {
bot.sendPrivateMsg(admin, "早上好!");
});
});
});
module.exports = { plugin };