Skip to content

Commit baf1f8d

Browse files
committed
Added Wasp quotes to the daily standup quotes.
1 parent 2f78764 commit baf1f8d

File tree

1 file changed

+20
-3
lines changed

1 file changed

+20
-3
lines changed

src/discord-bot.js

+20-3
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import * as Discord from "discord.js";
22
import * as schedule from "node-schedule";
33
import * as Quote from "inspirational-quotes";
44
import * as moment from "moment";
5+
import * as _ from "lodash";
56

67
import { config as dotenvConfig } from "dotenv";
78

@@ -259,12 +260,28 @@ const initiateDailyStandup = async (bot) => {
259260
DAILY_STANDUP_CHANNEL_ID,
260261
);
261262

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;
263280

264281
dailyStandupChannel.send(
265282
"☀️ Time for daily standup!" +
266283
"\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,
269286
);
270287
};

0 commit comments

Comments
 (0)