Skip to content

Commit

Permalink
Refactor loadV2Plugin to use database plugins instead of passed plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
kwaroran committed Dec 24, 2024
1 parent 29c9f0a commit b612d28
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ts/plugins/plugins.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,9 @@ export async function loadV2Plugin(plugins:RisuPlugin[]){
risuFetch: globalFetch,
nativeFetch: fetchNative,
getArg: (arg:string) => {
const db = getDatabase()
const [name, realArg] = arg.split('::')
for(const plug of plugins){
for(const plug of db.plugins){
if(plug.name === name){
return plug.realArg[realArg]
}
Expand Down

0 comments on commit b612d28

Please sign in to comment.