mirror of
https://github.com/syuilo/ai.git
synced 2024-11-09 23:48:01 +00:00
Use readonly
This commit is contained in:
parent
98a7fd94bd
commit
f014e310e6
|
@ -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: 藍) => {
|
||||
|
|
|
@ -119,7 +119,7 @@ const faces = [
|
|||
]
|
||||
|
||||
export default class EmojiModule implements IModule {
|
||||
public name = 'emoji';
|
||||
public readonly name = 'emoji';
|
||||
|
||||
public install = (ai: 藍) => { }
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ const items = [
|
|||
];
|
||||
|
||||
export default class FortuneModule implements IModule {
|
||||
public name = 'fortune';
|
||||
public readonly name = 'fortune';
|
||||
|
||||
public install = (ai: 藍) => { }
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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: 藍) => { }
|
||||
|
||||
|
|
|
@ -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: 藍;
|
||||
|
||||
|
|
|
@ -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: 藍) => {
|
||||
|
|
|
@ -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: 藍;
|
||||
|
||||
|
|
Loading…
Reference in a new issue