Skip to content

Commit

Permalink
typings: fix module not found
Browse files Browse the repository at this point in the history
  • Loading branch information
brokenedtzjs committed Oct 13, 2024
1 parent bb41fb4 commit d295903
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions typings/index.test-d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,12 @@ afk1.removeUser('12345678');

// 2
const afk: AfkClient = new AfkClient();
import moment from 'moment';

afk.setUser('12345678', [Date.now(), "test"]);
const users = afk.findUser('12345678');

const afkMessages = afk.getReason("12345678");

if (afkMessages) {
const [time, reason] = afkMessages;
const timeago = moment(time).fromNow();
console.log("AFK Message:", `${users} ${reason} ${timeago}`);
} else {
console.log(`No AFK message found for ${users}]`);
}
const reason = afk.getReason("12345678");
console.log("AFK Message:", `${users} ${reason}`);

afk.removeUser('12345678');

Expand Down

0 comments on commit d295903

Please sign in to comment.