2017-03-06 05:45:50 +08:00
|
|
|
'use strict';
|
|
|
|
|
2017-07-27 16:49:35 +08:00
|
|
|
const config = require('wild-config');
|
|
|
|
|
2017-07-27 16:50:15 +08:00
|
|
|
const quotes = config.imap.quotes || [
|
2017-04-13 16:35:39 +08:00
|
|
|
'All dreams are but another reality. Never forget...',
|
|
|
|
'Oh boy, oh boy, oh boy...',
|
|
|
|
'Cut the dramatics, would yeh, and follow me!',
|
|
|
|
'Oh ho ho ho, duck hunters is da cwaziest peoples! Ha ha ha.',
|
|
|
|
'Well, that makes sense. Send a bird to catch a cat!',
|
2017-06-03 14:51:58 +08:00
|
|
|
'Piccobello!',
|
|
|
|
'No more Mr. Nice Duck!',
|
2018-05-14 15:14:44 +08:00
|
|
|
'Not bad for a duck from outer space.',
|
|
|
|
'Ho! Ho! Ho! My BowWow is so proud of his fine fur coat!',
|
|
|
|
'Whew! What a surprise!',
|
|
|
|
'Whoa, boy! Where ya off to in such a hurry?',
|
|
|
|
'Ahhh... It has the Sleepy Toad-stool, it does!',
|
|
|
|
'Make-up! Jewels! Dresses! I want it all! Sigh...',
|
|
|
|
'Remember, you... too... are in... ...the dream...',
|
2018-09-11 18:36:26 +08:00
|
|
|
'The Wind Fish is watching...Hoot!',
|
|
|
|
'Bad biscuits make the baker broke, bro.',
|
|
|
|
'Everything small is just a smaller version of something big.',
|
|
|
|
"I'm doing so awesome on my own. Like, right now, I found this can of beans.",
|
|
|
|
'This does compute!',
|
|
|
|
'Oh, my Glob, you guys, drama bomb!',
|
|
|
|
'Melissa, I have to go, they got into my toilet paper! Melissa, I have to go!',
|
|
|
|
'Also, I think the Lemongrabs are getting weirder.'
|
2017-07-27 16:50:15 +08:00
|
|
|
];
|
2017-04-13 16:35:39 +08:00
|
|
|
|
2017-03-06 05:45:50 +08:00
|
|
|
module.exports = {
|
|
|
|
handler(command) {
|
|
|
|
this.session.selected = this.selected = false;
|
|
|
|
this.state = 'Logout';
|
|
|
|
|
2017-12-10 07:19:50 +08:00
|
|
|
this.clearNotificationListener();
|
|
|
|
this.send('* BYE Logout requested');
|
|
|
|
this.send(command.tag + ' OK ' + quotes[Math.floor(Math.random() * quotes.length)]);
|
|
|
|
this.close();
|
2017-03-06 05:45:50 +08:00
|
|
|
}
|
|
|
|
};
|