mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-07-02 09:39:56 +09:00
Refactor
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
import autobind from 'autobind-decorator';
|
||||
import Module from '../../module';
|
||||
import MessageLike from '../../message-like';
|
||||
import Message from '../../message';
|
||||
import serifs from '../../serifs';
|
||||
|
||||
export default class TimerModule extends Module {
|
||||
@ -14,7 +14,7 @@ export default class TimerModule extends Module {
|
||||
}
|
||||
|
||||
@autobind
|
||||
private mentionHook(msg: MessageLike) {
|
||||
private mentionHook(msg: Message) {
|
||||
const secondsQuery = (msg.text || '').match(/([0-9]+)秒/);
|
||||
const minutesQuery = (msg.text || '').match(/([0-9]+)分/);
|
||||
const hoursQuery = (msg.text || '').match(/([0-9]+)時間/);
|
||||
|
Reference in New Issue
Block a user