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

Made suggested changes #433

Closed
wants to merge 3 commits into from
Closed
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
18 changes: 18 additions & 0 deletions emojis_for_weekdays
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