mirror of
https://github.com/nullnyat/NullcatChan.git
synced 2025-07-02 08:59:59 +09:00
Improve AI
This commit is contained in:
@ -35,8 +35,9 @@ export default class TimerModule implements IModule {
|
||||
const str = `${hours ? hoursQuery[0] : ''}${minutes ? minutesQuery[0] : ''}${seconds ? secondsQuery[0] : ''}`;
|
||||
|
||||
setTimeout(() => {
|
||||
const name = this.ai.getName(msg.userId);
|
||||
this.ai.sendMessage(msg.userId, {
|
||||
text: serifs.timer.notify.replace('{time}', str)
|
||||
text: name ? serifs.timer.notifyWithName.replace('{time}', str).replace('{name}', name) : serifs.timer.notify.replace('{time}', str)
|
||||
});
|
||||
}, time);
|
||||
|
||||
|
Reference in New Issue
Block a user