Skip to content

Commit

Permalink
Update ready.js
Browse files Browse the repository at this point in the history
  • Loading branch information
DomathID authored Nov 6, 2020
1 parent 1327571 commit d106737
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions events/ready.js
Original file line number Diff line number Diff line change
@@ -1 +1,22 @@
module.exports = async (client) => {
const activity_list =
[
[`JavaScript`, "PLAYING", "idle"],
["bacotan-wibu.com", "LISTENING","idle"]
];
try {
setInterval(() => {
const index = Math.floor(Math.random() * activity_list.length);
client.user.setPresence({
activity: {
name: activity_list[index][0],
type: activity_list[index][1],
},
status: activity_list[index][2],
})
}, 7000);
} catch (e) {
console.log(e);
}
}

0 comments on commit d106737

Please sign in to comment.