mirror of
https://github.com/ikechan8370/chatgpt-plugin.git
synced 2025-12-17 22:07:10 +00:00
fix: 加个天气小工具
This commit is contained in:
parent
39478d2928
commit
e192e51ef2
7 changed files with 104 additions and 30 deletions
|
|
@ -55,6 +55,7 @@ import { SearchVideoTool } from '../utils/tools/SearchBilibiliTool.js'
|
|||
import { SearchMusicTool } from '../utils/tools/SearchMusicTool.js'
|
||||
import { QueryStarRailTool } from '../utils/tools/QueryStarRailTool.js'
|
||||
import { WebsiteTool } from '../utils/tools/WebsiteTool.js'
|
||||
import {WeatherTool} from "../utils/tools/WeatherTool.js";
|
||||
try {
|
||||
await import('emoji-strip')
|
||||
} catch (err) {
|
||||
|
|
@ -1938,7 +1939,8 @@ export class chatgpt extends plugin {
|
|||
new QueryStarRailTool(),
|
||||
new WebsiteTool(),
|
||||
new JinyanTool(),
|
||||
new KickOutTool()
|
||||
new KickOutTool(),
|
||||
new WeatherTool()
|
||||
]
|
||||
// if (e.sender.role === 'admin' || e.sender.role === 'owner') {
|
||||
// tools.push(...[new JinyanTool(), new KickOutTool()])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue