chatgpt / Yunzai /plugins /system /friend.js
dsgsgsd
Upload 73 files
481eba0 verified
raw
history blame contribute delete
488 Bytes
import cfg from "../../lib/config/config.js"
export class friend extends plugin {
constructor () {
super({
name: "autoFriend",
dsc: "θ‡ͺεŠ¨εŒζ„ε₯½ε‹",
event: "request.friend"
})
}
async accept() {
if (this.e.sub_type == "add" || this.e.sub_type == "single") {
if (cfg.other.autoFriend == 1) {
logger.mark(`[θ‡ͺεŠ¨εŒζ„][添加ε₯½ε‹] ${this.e.user_id}`)
await Bot.sleep(3000)
this.e.approve(true)
}
}
}
}