update
This commit is contained in:
17
src/index.ts
17
src/index.ts
@@ -4,6 +4,9 @@ import { KnowledgeBase } from "./knowledge/index.ts";
|
||||
import { Repo } from "./repo/index.ts";
|
||||
import { User } from "./user/index.ts";
|
||||
import { Build } from "./build/index.ts";
|
||||
import { Issue } from "./issue/index.ts";
|
||||
import { Mission } from "./mission/index.ts";
|
||||
import { AiBase } from "./ai/index.ts";
|
||||
|
||||
type CNBOptions = CNBCoreOptions<{
|
||||
group?: string;
|
||||
@@ -15,12 +18,10 @@ export class CNB extends CNBCore {
|
||||
repo!: Repo;
|
||||
user!: User;
|
||||
build!: Build;
|
||||
<<<<<<< HEAD
|
||||
=======
|
||||
issue!: Issue;
|
||||
mission!: Mission;
|
||||
ai!: AiBase;
|
||||
group!: string;
|
||||
>>>>>>> 84efdce (update)
|
||||
constructor(options: CNBOptions) {
|
||||
super({ token: options.token, cookie: options.cookie, cnb: options.cnb });
|
||||
this.init(options);
|
||||
@@ -34,12 +35,10 @@ export class CNB extends CNBCore {
|
||||
this.knowledgeBase = new KnowledgeBase({ token: options.token, cookie: options.cookie });
|
||||
this.repo = new Repo({ token: options.token, cookie: options.cookie });
|
||||
this.user = new User({ token: options.token, cookie: options.cookie });
|
||||
<<<<<<< HEAD
|
||||
this.build = new Build({ group: group, token: options.token, cookie: options.cookie });
|
||||
=======
|
||||
this.build = new Build({ token: options.token, cookie: options.cookie });
|
||||
this.issue = new Issue({ token: options.token, cookie: options.cookie });
|
||||
this.mission = new Mission({ token: options.token, cookie: options.cookie });
|
||||
this.ai = new AiBase({ token: options.token, cookie: options.cookie });
|
||||
this.group = group;
|
||||
}
|
||||
setGroup(group: string) {
|
||||
@@ -62,7 +61,6 @@ export class CNB extends CNBCore {
|
||||
this.build.cookie = cookie;
|
||||
this.issue.cookie = cookie;
|
||||
this.mission.cookie = cookie;
|
||||
>>>>>>> 84efdce (update)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -71,4 +69,7 @@ export * from './cnb-core.ts'
|
||||
export * from './knowledge/index.ts'
|
||||
export * from './repo/index.ts'
|
||||
export * from './user/index.ts'
|
||||
export * from './build/index.ts'
|
||||
export * from './build/index.ts'
|
||||
export * from './issue/index.ts'
|
||||
export * from './mission/index.ts'
|
||||
export * from './ai/index.ts'
|
||||
Reference in New Issue
Block a user