mirror of
https://github.com/System-End/slack-end.git
synced 2026-04-19 22:05:10 +00:00
enhancement(lint): Fix lint errors for src/modules/projectWaterydo.ts
Co-authored-by: NeonGamerBot-QK <neon@saahild.com> Signed-off-by: zeon-neon[bot] <136533918+zeon-neon[bot]@users.noreply.github.com>
This commit is contained in:
parent
1474560c78
commit
33a7f77d60
1 changed files with 20 additions and 20 deletions
|
|
@ -20,37 +20,37 @@ function getTimeOfDay() {
|
|||
const hour = new Date().getHours();
|
||||
|
||||
if (hour >= 5 && hour < 9) {
|
||||
return "Early Morning";
|
||||
return "Early Morning";
|
||||
} else if (hour >= 9 && hour < 12) {
|
||||
return "Morning";
|
||||
return "Morning";
|
||||
} else if (hour >= 12 && hour < 17) {
|
||||
return "Afternoon";
|
||||
return "Afternoon";
|
||||
} else if (hour >= 17 && hour < 21) {
|
||||
return "Evening";
|
||||
return "Evening";
|
||||
} else {
|
||||
return "Night";
|
||||
return "Night";
|
||||
}
|
||||
}
|
||||
|
||||
export function handleGitRequest(body: GitBody, app: App) {
|
||||
const funny_words = [
|
||||
"Mom! look i did something!",
|
||||
"This is a working moment",
|
||||
"I love linting your code :3",
|
||||
`On this fine ${getTimeOfDay()}, im still working on code bruv`,
|
||||
"PLEASE THIS NEEDS TO WORK",
|
||||
"neon ur code sucks so im linting it",
|
||||
`neon ur code is ASSSS`,
|
||||
"this is what happens when you dont use spaces idiot",
|
||||
"yum yum code :3",
|
||||
`After being up for ${ms(process.uptime() * 1000)} im still at it!!`,
|
||||
]
|
||||
"This is a working moment",
|
||||
"I love linting your code :3",
|
||||
`On this fine ${getTimeOfDay()}, im still working on code bruv`,
|
||||
"PLEASE THIS NEEDS TO WORK",
|
||||
"neon ur code sucks so im linting it",
|
||||
`neon ur code is ASSSS`,
|
||||
"this is what happens when you dont use spaces idiot",
|
||||
"yum yum code :3",
|
||||
`After being up for ${ms(process.uptime() * 1000)} im still at it!!`,
|
||||
];
|
||||
if (!db) return;
|
||||
if(body.is_zeon) {
|
||||
app.client.chat.postMessage({
|
||||
channel: `C07LEEB50KD`,
|
||||
text: `${funny_words[Math.floor(Math.random() * funny_words.length)]}\n> :zeon:\`<https://github.com/NeonGamerBot-QK/${body.repo_name}/commit/${body.commit_id}|${body.commit_id.slice(0, 7)}>\``,
|
||||
})
|
||||
if (body.is_zeon) {
|
||||
app.client.chat.postMessage({
|
||||
channel: `C07LEEB50KD`,
|
||||
text: `${funny_words[Math.floor(Math.random() * funny_words.length)]}\n> :zeon:\`<https://github.com/NeonGamerBot-QK/${body.repo_name}/commit/${body.commit_id}|${body.commit_id.slice(0, 7)}>\``,
|
||||
});
|
||||
}
|
||||
if (!db.get("git_session")) return;
|
||||
const session = (db.get("git_session") || []).find(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue