Skip to content

Commit 6de7963

Browse files
committed
Oscillating status :D
1 parent ab8672a commit 6de7963

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

src/events/ready.js

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,23 @@ module.exports = {
22
name: 'ready',
33
once: true,
44
async execute(client) {
5+
const activities = [
6+
"made by crrystalz#0001",
7+
"/help"
8+
]
59
console.log('Emerald is online!');
6-
client.user.setActivity(" made by crrystalz#0001")
10+
var index = 0;
11+
setInterval(() => {
12+
const newActivity = activities[index];
13+
client.user.setActivity(newActivity);
14+
15+
if (index == 0) {
16+
index = 1;
17+
}
18+
else {
19+
index = 0;
20+
}
21+
22+
}, 5000);
723
}
824
}

0 commit comments

Comments
 (0)