/[sudobot]/trunk/extensions/neko/src/index.ts
ViewVC logotype

Contents of /trunk/extensions/neko/src/index.ts

Parent Directory Parent Directory | Revision Log Revision Log


Revision 611 - (show annotations)
Sun Aug 25 17:37:58 2024 UTC (7 months, 1 week ago) by rakinar2
File MIME type: application/typescript
File size: 647 byte(s)
fix(extensions:neko): support sudobot v9 APIs

1 import { Extension } from "@sudobot/extensions/Extension";
2 import { Awaitable } from "discord.js";
3 import "module-alias/register";
4 import Application from "../../../build/out/framework/typescript/app/Application";
5 import { Command } from "../../../build/out/framework/typescript/commands/Command";
6 import { Class } from "../../../build/out/framework/typescript/types/Utils";
7 import AnimeCommand from "./commands/AnimeCommand";
8 import NekoCommand from "./commands/NekoCommand";
9
10 export default class Neko extends Extension {
11 protected commands(): Awaitable<Class<Command, [Application]>[]> {
12 return [AnimeCommand, NekoCommand];
13 }
14 }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26