Skip to content

Update playerCommands.ts (test) #46

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

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
e97f69c
Update playerCommands.ts (test)
RickAstly Jan 25, 2025
ea6a1f9
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
fe684e6
intentionally break tests
RickAstly Jan 25, 2025
c10364e
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
254abbb
break tests with tsc
RickAstly Jan 25, 2025
a14a965
tests broken, tsc required
RickAstly Jan 25, 2025
5316cac
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
cd9657c
break tests, tsc required
RickAstly Jan 25, 2025
d184617
break tests, tsc required
RickAstly Jan 25, 2025
3bfd591
Fix tests (tsc required)
RickAstly Jan 25, 2025
802c294
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
e9c78a3
break tests, tsc required
RickAstly Jan 25, 2025
d3fd43c
break tests, tsc required
RickAstly Jan 25, 2025
e0f5950
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
4f65846
break tests, tsc changes
RickAstly Jan 25, 2025
835a5f2
break tests, tsc needed
RickAstly Jan 25, 2025
c434eca
oops, break tests, tsc required
RickAstly Jan 25, 2025
4b1ea8c
break tests, tsc required
RickAstly Jan 25, 2025
31946a0
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
6f8f9ec
break tests, tsc NOT required
RickAstly Jan 25, 2025
93df13e
Fix tests, tsc required
RickAstly Jan 25, 2025
dd3b2a8
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
295ab9a
no way this breaks the workflow right?
RickAstly Jan 25, 2025
25de778
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
e653d9f
actual check
RickAstly Jan 25, 2025
c0cd6f8
Automated TypeScript compile
github-actions[bot] Jan 25, 2025
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
2 changes: 1 addition & 1 deletion build/scripts/playerCommands.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions build/scripts/utils.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/playerCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export const commands = commandList({
handler({output}){
output(
`[accent][cyan]fish-commands[] is the monolithic plugin used for the Fish servers' features.
[accent]==========
[accent]===========
[accent]Source code available at: [cyan]https://github.com/Fish-Community/fish-commands/
[accent]Current plugin version: [cyan]${fishPlugin.version?.slice(0, 8) ?? "[scarlet]null[]"}[]`
);
Expand Down
8 changes: 4 additions & 4 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ import { FishPlayer } from "./players";
import { Boolf, PartialFormatString, SelectEnumClassKeys } from './types';


Log.info("bruhhh");
export function formatTime(time:number){

if(maxTime - (time + Date.now()) < 20000) return "forever";

const months = Math.floor(time / (30 * 24 * 60 * 60 * 1000));
Expand All @@ -26,9 +26,9 @@ export function formatTime(time:number){
return [
months && `${months} month${months != 1 ? "s" : ""}`,
days && `${days} day${days != 1 ? "s" : ""}`,
hours && `${hours} hour${hours != 1 ? "s" : ""}`,
minutes && `${minutes} minute${minutes != 1 ? "s" : ""}`,
(seconds || time < 1000) && `${seconds} second${seconds != 1 ? "s" : ""}`,
hours && `${hours} hora${hours != 1 ? "s" : ""}`,
minutes && `${minutes} minuto${minutes != 1 ? "s" : ""}`,
(seconds || time < 1000) && `${seconds} segundo${seconds != 1 ? "s" : ""}`,
].filter(Boolean).join(", ")
}

Expand Down
Loading