Skip to content

Commit

Permalink
fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
MaikoTan committed Feb 18, 2024
1 parent 56f75b9 commit 9d70432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@ declare module 'koishi' {
export class HitokotoApi extends Service {
private _apiUrl: string

constructor(ctx: Context, private config: Config) {
constructor(
ctx: Context,
private config: Config,
) {
super(ctx, 'hitokoto', true)
this._apiUrl = config.apiUrl ?? 'https://v1.hitokoto.cn/'
}
Expand Down

0 comments on commit 9d70432

Please sign in to comment.