@@ -2,6 +2,7 @@ import * as Discord from "discord.js";
2
2
import * as schedule from "node-schedule" ;
3
3
import * as Quote from "inspirational-quotes" ;
4
4
import * as moment from "moment" ;
5
+ import * as _ from "lodash" ;
5
6
6
7
import { config as dotenvConfig } from "dotenv" ;
7
8
@@ -259,12 +260,28 @@ const initiateDailyStandup = async (bot) => {
259
260
DAILY_STANDUP_CHANNEL_ID ,
260
261
) ;
261
262
262
- const wisdom = ( ( q ) => `${ q . text } | ${ q . author } ` ) ( Quote . getQuote ( ) ) ;
263
+ const wisdomQuote = ( ( q ) => `${ q . text } | ${ q . author } ` ) ( Quote . getQuote ( ) ) ;
264
+ const waspQuote = ( ( q ) => `${ q [ 0 ] } | ${ q [ 1 ] } ` ) (
265
+ _ . sample ( [
266
+ [ "No hour of life is wasted that is spent in the saddle." , "Vince" ] ,
267
+ [ "Food nourishes the body, but meetings nourish the soul." , "Filip" ] ,
268
+ [ "Shirt is just a social construct." , "Miho" ] ,
269
+ [
270
+ "Don't be too dogmatic, unless we're talking about Dogma the beer brewery." ,
271
+ "Milica, wannabe home brewer" ,
272
+ ] ,
273
+ [ "Let's send them some swag! Martin will take care of it." , "Matija" ] [
274
+ ( "I don't have time to review PRs but it seems I do have time to implement these silly quotes." ,
275
+ "Martin" )
276
+ ] ,
277
+ ] ) ,
278
+ ) ;
279
+ const quote = Math . random ( ) < 0.1 ? waspQuote : wisdomQuote ;
263
280
264
281
dailyStandupChannel . send (
265
282
"☀️ Time for daily standup!" +
266
283
"\nHow was your day yesterday, what are you working on today, and what are the challenges you are encountering?" +
267
- "\n\n💡 Daily fun/wisdom : " +
268
- wisdom ,
284
+ "\n\n💡 Daily quote : " +
285
+ quote ,
269
286
) ;
270
287
} ;
0 commit comments