| 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) | |
| } | |
| } | |
| } | |
| } |