Skip to content

Commit

Permalink
fix: eslint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JaronZ committed Jul 9, 2023
1 parent 3b558dc commit 4035b1d
Show file tree
Hide file tree
Showing 4 changed files with 274 additions and 8 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
"@typescript-eslint/parser": "5.61.0",
"eslint": "8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-prettier": "alpha",
"husky": "8.0.3",
"prettier": "3.0.0",
"prisma": "4.16.2",
Expand Down
11 changes: 7 additions & 4 deletions src/listeners/client/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,13 @@ export class ReadyListener extends Listener<"ready"> {
];
let activityIndex = 0;
client.user.setActivity(activities[activityIndex]);
setInterval(() => {
activityIndex = activityIndex === activities.length - 1 ? 0 : activityIndex + 1;
client.user.setActivity(activities[activityIndex]);
}, 5 * 60 * 1000);
setInterval(
() => {
activityIndex = activityIndex === activities.length - 1 ? 0 : activityIndex + 1;
client.user.setActivity(activities[activityIndex]);
},
5 * 60 * 1000
);

this.container.logger.info(`${client.user.username} is ready`);
}
Expand Down
5 changes: 4 additions & 1 deletion src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ export class Logger extends SapphireLogger {
[LogLevel.None, new WebhookLogFormat(Colors.Default, "")]
]);

public constructor(public readonly container: typeof sapphireContainer, options?: LoggerOptions) {
public constructor(
public readonly container: typeof sapphireContainer,
options?: LoggerOptions
) {
super(options);
}

Expand Down
Loading

0 comments on commit 4035b1d

Please sign in to comment.