mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-07-02 13:59:52 +09:00
Refactor
This commit is contained in:
@ -9,12 +9,12 @@ export default class TimerModule extends Module {
|
||||
@autobind
|
||||
public install() {
|
||||
return {
|
||||
onMention: this.onMention
|
||||
mentionHook: this.mentionHook
|
||||
};
|
||||
}
|
||||
|
||||
@autobind
|
||||
private onMention(msg: MessageLike) {
|
||||
private mentionHook(msg: MessageLike) {
|
||||
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