Commit 3aaa131c authored by nanahira's avatar nanahira

remove workaround for service listening

parent 0d9c0837
...@@ -153,12 +153,12 @@ export class KoishiMetascanService { ...@@ -153,12 +153,12 @@ export class KoishiMetascanService {
methodFun.call(instance, ...args), methodFun.call(instance, ...args),
); );
// special events // special events
if (typeof eventName === 'string' && eventName.startsWith('service/')) { /*if (typeof eventName === 'string' && eventName.startsWith('service/')) {
const serviceName = eventName.slice(8); const serviceName = eventName.slice(8);
if (baseContext[serviceName] != null) { if (baseContext[serviceName] != null) {
methodFun.call(instance); methodFun.call(instance);
} }
} }*/
break; break;
case 'plugin': case 'plugin':
const pluginDesc: KoishiModulePlugin<any> = await methodFun.call( const pluginDesc: KoishiModulePlugin<any> = await methodFun.call(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment