fixed time

This commit is contained in:
Flummi
2017-11-08 22:29:43 +01:00
parent a32efd38b4
commit 3b69c3e80f
3 changed files with 8 additions and 4 deletions

View File

@ -90,7 +90,7 @@ class irc {
channel: tmp.params[0],
user: user,
message: tmp.params[1].replace(/\r?\n|\r/g, ''),
time: Date.now(),
time: ~~(Date.now() / 1000),
reply: msg => {
this.send(`PRIVMSG ${tmp.params[0]} ${msg}`);
},

View File

@ -64,4 +64,4 @@ const replytg = (bot, tmp) => { // muss noch hier raus
};
util.inherits(wrapper, EventEmitter);
export default { wrapper };
export default { wrapper, clients };