mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
fix
This commit is contained in:
parent
31eee4c8ca
commit
e2af245be6
@ -38,6 +38,14 @@ export default class note {
|
|||||||
this.e.reply("体力推送开启成功~\n后续每天会为您推送体力")
|
this.e.reply("体力推送开启成功~\n后续每天会为您推送体力")
|
||||||
}
|
}
|
||||||
delNote() {
|
delNote() {
|
||||||
|
if (!this.noteCfg[this.e.group_id]) { //首次直接设置
|
||||||
|
this.noteCfg[this.e.group_id] = {
|
||||||
|
"task": [],
|
||||||
|
"isTask": true,
|
||||||
|
"sendResin": 120
|
||||||
|
}
|
||||||
|
this.saveNote(this.noteCfg)
|
||||||
|
}
|
||||||
try {
|
try {
|
||||||
if (this.noteCfg[this.e.group_id]) {
|
if (this.noteCfg[this.e.group_id]) {
|
||||||
if (!this.isTaskAdmin()) return true;
|
if (!this.isTaskAdmin()) return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user