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 330da16 commit 8a4921b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
11 changes: 4 additions & 7 deletions src/listeners/client/ready.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,10 @@ 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: 1 addition & 4 deletions src/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ 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

0 comments on commit 8a4921b

Please sign in to comment.