Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JaronZ committed Jul 14, 2023
1 parent e3ffd4c commit 1ec0339
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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

0 comments on commit 1ec0339

Please sign in to comment.