Refactoring

This commit is contained in:
syuilo 2019-01-23 20:10:58 +09:00
parent 6c69ee72b1
commit 29eae273e5
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
14 changed files with 14 additions and 14 deletions

View file

@ -7,7 +7,7 @@ function zeroPadding(num: number, length: number): string {
return ('0000000000' + num).slice(-length);
}
export default class BirthdayModule extends Module {
export default class extends Module {
public readonly name = 'birthday';
@autobind

View file

@ -9,7 +9,7 @@ const titles = ['さん', 'くん', '君', 'ちゃん', '様', '先生'];
const invalidChars = ['@', '#', '*', ':', '(', '[', ' ', ' '];
export default class CoreModule extends Module {
export default class extends Module {
public readonly name = 'core';
@autobind

View file

@ -3,7 +3,7 @@ import Module from '../../module';
import Message from '../../message';
import serifs from '../../serifs';
export default class DiceModule extends Module {
export default class extends Module {
public readonly name = 'dice';
@autobind

View file

@ -126,7 +126,7 @@ const faces = [
'👽'
]
export default class EmojiModule extends Module {
export default class extends Module {
public readonly name = 'emoji';
@autobind

View file

@ -2,7 +2,7 @@ import autobind from 'autobind-decorator';
import Module from '../../module';
import Message from '../../message';
export default class FollowModule extends Module {
export default class extends Module {
public readonly name = 'follow';
@autobind

View file

@ -5,7 +5,7 @@ import serifs from '../../serifs';
import * as seedrandom from 'seedrandom';
import { blessing, itemPrefixes, items } from './vocabulary';
export default class FortuneModule extends Module {
export default class extends Module {
public readonly name = 'fortune';
@autobind

View file

@ -5,7 +5,7 @@ import Message from '../../message';
import serifs from '../../serifs';
import getCollection from '../../utils/get-collection';
export default class GuessingGameModule extends Module {
export default class extends Module {
public readonly name = 'guessingGame';
private guesses: loki.Collection<{

View file

@ -13,7 +13,7 @@ function kanaToHira(str: string) {
});
}
export default class KeywordModule extends Module {
export default class extends Module {
public readonly name = 'keyword';
private tokenizer: any;

View file

@ -2,7 +2,7 @@ import autobind from 'autobind-decorator';
import Module from '../../module';
import Message from '../../message';
export default class PingModule extends Module {
export default class extends Module {
public readonly name = 'ping';
@autobind

View file

@ -7,7 +7,7 @@ import Message from '../../message';
import Friend from '../../friend';
import getDate from '../../utils/get-date';
export default class ReversiModule extends Module {
export default class extends Module {
public readonly name = 'reversi';
/**

View file

@ -3,7 +3,7 @@ import Module from '../../module';
import serifs from '../../serifs';
import config from '../../config';
export default class ServerModule extends Module {
export default class extends Module {
public readonly name = 'server';
private connection?: any;

View file

@ -3,7 +3,7 @@ import Module from '../../module';
import Message from '../../message';
import serifs from '../../serifs';
export default class TimerModule extends Module {
export default class extends Module {
public readonly name = 'timer';
@autobind

View file

@ -3,7 +3,7 @@ import Module from '../../module';
import Friend from '../../friend';
import serifs from '../../serifs';
export default class ValentineModule extends Module {
export default class extends Module {
public readonly name = 'valentine';
@autobind

View file

@ -1,7 +1,7 @@
import autobind from 'autobind-decorator';
import Module from '../../module';
export default class WelcomeModule extends Module {
export default class extends Module {
public readonly name = 'welcome';
@autobind