Skip to content

Commit

Permalink
Fix typo to reflect pfp change based on time (hackclub#1536)
Browse files Browse the repository at this point in the history
Change `images.afternoon` to `images.morning` and `images.night` for appropriate profile picture change based on time of day
  • Loading branch information
exu3 authored Dec 25, 2020
1 parent 3555190 commit fd10948
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions workshops/slack_pfp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ else if (12 < hour && hour < 20) {
});
}
else {
image = await axios.get(images.afternoon, {
image = await axios.get(images.night, {
responseType: "arraybuffer",
});
}
Expand All @@ -185,7 +185,7 @@ async function setPFP() {
var hour = new Date().getHours() + 8
let image
if (5 < hour && hour < 12) {
image = await axios.get(images.afternoon, {
image = await axios.get(images.morning, {
responseType: "arraybuffer",
});
}
Expand All @@ -195,7 +195,7 @@ async function setPFP() {
});
}
else {
image = await axios.get(images.afternoon, {
image = await axios.get(images.night, {
responseType: "arraybuffer",
});
}
Expand Down

0 comments on commit fd10948

Please sign in to comment.