Use readonly

This commit is contained in:
syuilo 2018-08-31 08:20:49 +09:00
parent 98a7fd94bd
commit f014e310e6
9 changed files with 9 additions and 9 deletions

View file

@ -14,7 +14,7 @@ const titles = ['さん', 'くん', '君', 'ちゃん', '様', '先生'];
const invalidChars = ['@', '#', '*', ':', '(', '[', ' ', ' '];
export default class CoreModule implements IModule {
public name = 'core';
public readonly name = 'core';
private ai: ;
public install = (ai: ) => {

View file

@ -119,7 +119,7 @@ const faces = [
]
export default class EmojiModule implements IModule {
public name = 'emoji';
public readonly name = 'emoji';
public install = (ai: ) => { }

View file

@ -25,7 +25,7 @@ const items = [
];
export default class FortuneModule implements IModule {
public name = 'fortune';
public readonly name = 'fortune';
public install = (ai: ) => { }

View file

@ -6,7 +6,7 @@ import serifs from '../../serifs';
import getCollection from '../../utils/get-collection';
export default class GuessingGameModule implements IModule {
public name = 'guessingGame';
public readonly name = 'guessingGame';
private ai: ;
private guesses: loki.Collection<{
userId: string;

View file

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

View file

@ -3,7 +3,7 @@ import IModule from '../../module';
import MessageLike from '../../message-like';
export default class PingModule implements IModule {
public name = 'ping';
public readonly name = 'ping';
public install = (ai: ) => { }

View file

@ -11,7 +11,7 @@ import getDate from '../../utils/get-date';
import { User } from '../../misskey/user';
export default class ReversiModule implements IModule {
public name = 'reversi';
public readonly name = 'reversi';
private ai: ;

View file

@ -4,7 +4,7 @@ import MessageLike from '../../message-like';
import serifs from '../../serifs';
export default class TimerModule implements IModule {
public name = 'timer';
public readonly name = 'timer';
private ai: ;
public install = (ai: ) => {

View file

@ -2,7 +2,7 @@ import 藍 from '../../ai';
import IModule from '../../module';
export default class WelcomeModule implements IModule {
public name = 'welcome';
public readonly name = 'welcome';
private ai: ;