|
|
@ -4,9 +4,12 @@ |
|
|
|
|
|
|
|
let { AbstractModule } = require('../abstract'); |
|
|
|
let { logger } = require('../../logging'); |
|
|
|
let szurubooruClient = require('./client'); |
|
|
|
import { SzurubooruClient } from './client'; |
|
|
|
|
|
|
|
class SzurubooruModule extends AbstractModule { |
|
|
|
|
|
|
|
client: SzurubooruClient; |
|
|
|
|
|
|
|
constructor() { |
|
|
|
super( |
|
|
|
"Szurubooru", |
|
|
@ -36,7 +39,7 @@ class SzurubooruModule extends AbstractModule { |
|
|
|
|
|
|
|
postInit() { |
|
|
|
super.postInit(); |
|
|
|
this.client = new szurubooruClient.Client( |
|
|
|
this.client = new SzurubooruClient( |
|
|
|
this.get("url"), |
|
|
|
this.get("username"), |
|
|
|
this.get("token") |
|
|
|