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