Update js/main.js
This commit is contained in:
19
js/main.js
19
js/main.js
@@ -32,6 +32,7 @@ bgClassContainer = [
|
|||||||
]
|
]
|
||||||
searchEngines = {
|
searchEngines = {
|
||||||
"Google": "https://www.google.com/search?q=",
|
"Google": "https://www.google.com/search?q=",
|
||||||
|
"FindShit": "https://findsh.it/search?q=",
|
||||||
"DuckDuckGo": "https://duckduckgo.com/?q=",
|
"DuckDuckGo": "https://duckduckgo.com/?q=",
|
||||||
"Brave": "https://search.brave.com/search?q=",
|
"Brave": "https://search.brave.com/search?q=",
|
||||||
"Yahoo": "https://search.yahoo.com/search?p=",
|
"Yahoo": "https://search.yahoo.com/search?p=",
|
||||||
@@ -111,17 +112,17 @@ function buildMsg() {
|
|||||||
currentTime = currentHour + (0.01 * currentMinute)
|
currentTime = currentHour + (0.01 * currentMinute)
|
||||||
|
|
||||||
if (inRange(currentTime, 0, 5.59))
|
if (inRange(currentTime, 0, 5.59))
|
||||||
return "It's too late, take some sleep"
|
return "Rendort toi..."
|
||||||
if (inRange(currentTime, 6, 8.59))
|
if (inRange(currentTime, 6, 8.30))
|
||||||
return "You're up early"
|
return "Trop tot pour bosser"
|
||||||
if (inRange(currentTime, 9, 11.59))
|
if (inRange(currentTime, 8.31, 11.59))
|
||||||
return "Have a good day ahead"
|
return "Je sens que ca va etre une bonne journée"
|
||||||
if (inRange(currentTime, 12, 16.59))
|
if (inRange(currentTime, 12, 16.59))
|
||||||
return "Good Afternoon"
|
return "Bon aprem"
|
||||||
if (inRange(currentTime, 17, 19.59))
|
if (inRange(currentTime, 17, 19.59))
|
||||||
return "Good Evening"
|
return "Bonne soirée"
|
||||||
if (inRange(currentTime, 20, 24))
|
if (inRange(currentTime, 20, 24))
|
||||||
return "It's time to wrap up for the day"
|
return "Allez hop, on remballe"
|
||||||
else
|
else
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
@@ -136,7 +137,7 @@ function handleMessage(userName) {
|
|||||||
*/
|
*/
|
||||||
var builtMsg = buildMsg()
|
var builtMsg = buildMsg()
|
||||||
builtMsg == "" ?
|
builtMsg == "" ?
|
||||||
builtMsg = `Hello ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!`
|
builtMsg = `Salut ${userName}` : builtMsg = `Hey ${userName}, ${builtMsg}!`
|
||||||
return builtMsg;
|
return builtMsg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user