Skip to content

Commit da165cc

Browse files
Add NewsPlugin for fetching news feed
1 parent 1494182 commit da165cc

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

Core/Kernel/News.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { kernel } from "@/core/kernel";
2+
3+
export const NewsPlugin = {
4+
init(kernelInstance: any) {
5+
kernelInstance.on("news:fetch", async () => {
6+
console.log("Fetching news feed...");
7+
});
8+
}
9+
};

0 commit comments

Comments
 (0)