fix: tool permission

This commit is contained in:
ikechan8370 2024-12-31 13:02:18 +08:00
parent f6ce6dcec5
commit 1149f34070
2 changed files with 10 additions and 2 deletions

View file

@ -16,6 +16,7 @@ import { EditCardTool } from '../utils/tools/EditCardTool.js'
import { JinyanTool } from '../utils/tools/JinyanTool.js'
import { KickOutTool } from '../utils/tools/KickOutTool.js'
import { SetTitleTool } from '../utils/tools/SetTitleTool.js'
import {SerpTool} from '../utils/tools/SerpTool.js'
export class bym extends plugin {
constructor () {
@ -117,6 +118,9 @@ export class bym extends plugin {
new WebsiteTool(),
new WeatherTool()
]
if (Config.azSerpKey) {
tools.push(new SerpTool())
}
if (e.group.is_admin || e.group.is_owner) {
tools.push(new EditCardTool())
tools.push(new JinyanTool())