Skip to content

Commit d295903

Browse files
committed
typings: fix module not found
1 parent bb41fb4 commit d295903

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

typings/index.test-d.ts

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,12 @@ afk1.removeUser('12345678');
99

1010
// 2
1111
const afk: AfkClient = new AfkClient();
12-
import moment from 'moment';
1312

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

17-
const afkMessages = afk.getReason("12345678");
18-
19-
if (afkMessages) {
20-
const [time, reason] = afkMessages;
21-
const timeago = moment(time).fromNow();
22-
console.log("AFK Message:", `${users} ${reason} ${timeago}`);
23-
} else {
24-
console.log(`No AFK message found for ${users}]`);
25-
}
16+
const reason = afk.getReason("12345678");
17+
console.log("AFK Message:", `${users} ${reason}`);
2618

2719
afk.removeUser('12345678');
2820

0 commit comments

Comments
 (0)