diff --git a/events/ready.js b/events/ready.js index 8b13789..d69c276 100644 --- a/events/ready.js +++ b/events/ready.js @@ -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); + } +}