random ctcp version

This commit is contained in:
Flummi 2017-11-28 16:39:11 +01:00
parent 3ebdf7d58c
commit 32b008f1e5

View File

@ -47,7 +47,11 @@ read().then(() => {
});
bot.on("ctcp:version", e => {
e.write(`notice ${e.user.nick} :\u0001VERSION Pimmel 2.1\u0001`);
const versions = [
"AmIRC.1 (8 Bit) for Commodore Amiga 500",
"HexChat 0.72 [x86] / Windows 95c [500MHz]"
];
e.write(`notice ${e.user.nick} :\u0001VERSION ${versions[~~(Math.random() * versions.length)]}\u0001`);
});
})
.catch(err => {