Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Week Emoticon - WeekMoji #443

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Parsers/weekMoji.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
emoji: saturday-chill
*/

new x_snc_slackerbot.Slacker().send_reaction(current, weeklyMoji());

function weeklyMoji() {
var weekEmojis = {
0: 'sunday-funday', // Sunday
1: 'monday-blues', // Monday
2: 'taco-tuesday', // Tuesday
3: 'wacky-wednesday', // Wednesday
4: 'thankful-thursday', // Thursday
5: 'friday-vibes', // Friday
6: 'saturday-chill' // Saturday
};

var day = new GlideDateTime().getDayOfWeekUTC(); // Get the current day of the week (0 = Sunday, 6 = Saturday)
return weekEmojis[day];
}
//Added script for weekly emoji reactions
18 changes: 18 additions & 0 deletions emojis_for_weekdays
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file duplicates most of the other files functionality and is in the core repo and cannot be accepted in this state.

Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

new x_snc_slackerbot.Slacker().send_reaction(current, weeklyMoji());

function weeklyMoji() {
var weekEmojis = {
0: 'sunday-funday', // Sunday
1: 'monday-blues', // Monday
2: 'taco-tuesday', // Tuesday
3: 'wacky-wednesday', // Wednesday
4: 'thankful-thursday', // Thursday
5: 'friday-vibes', // Friday
6: 'saturday-chill' // Saturday
};

var day = new GlideDateTime().getDayOfWeekUTC(); // Get the current day of the week (0 = Sunday, 6 = Saturday)
return weekEmojis[day];
}
//Added slackerbot script for weekly emoji reactions
Loading