Skip to content

Commit

Permalink
silly me
Browse files Browse the repository at this point in the history
  • Loading branch information
Szedann committed Apr 7, 2024
1 parent 077a794 commit 7843681
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/handlers/dynamicIcon.handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,16 @@ export const dynamicIconHandler: Handler = (client) => {
let timeout: NodeJS.Timeout | undefined = undefined;
if (Date.now() > endTime) return;
client.on('messageCreate', async (message) => {
if (
message.content != 'start numismatics icon thingy please' &&
message.member?.permissions.has('Administrator')
) {
if (message.content != 'start numismatics icon thingy please') return;
if (!message.member?.permissions.has('Administrator')) {
message.reply('nuh uh');
return;
}
if (timeout) {
message.reply('it already started silly');
return;
}
message.reply('ok!!');
const updateIcon = async () => {
const currentTime = Date.now() - startTime;
const currentProgress = currentTime / totalTime;
Expand Down

0 comments on commit 7843681

Please sign in to comment.