Unfinished, do not pull.
This commit is contained in:
+20
-8
@@ -6,17 +6,29 @@ client.on('ready', () => {
|
||||
console.log(chalk.green(`Logged in as ${client.user.tag}!`));
|
||||
setInterval(() => {
|
||||
let activities = [
|
||||
{ type: "Playing", name: "/verify" },
|
||||
{ type: "Playing", name: "Securing our servers" },
|
||||
{ type: "Watching", name: `Watching bans...` },
|
||||
{ type: "Playing", name: "with /verify command." },
|
||||
{ type: "Playing", name: "whilst securing our servers." },
|
||||
{ type: "Watching", name: `for the shooting stars.` },
|
||||
{ type: "Watching", name: `over everyone.` },
|
||||
{ type: "Watching", name: `for the storm that is approaching.` },
|
||||
{ type: "Listening", name: "the sound of silence." },
|
||||
{ type: "Listening", name: "the sound of the rain." },
|
||||
{ type: "Listening", name: "the sound of the wind." }
|
||||
];
|
||||
|
||||
const status = activities[Math.floor(Math.random() * activities.length)];
|
||||
|
||||
if (status.type === "Watching") {
|
||||
client.user.setPresence({ activities: [{ name: `${status.name}`, type: ActivityType.Watching }] });
|
||||
} else {
|
||||
client.user.setPresence({ activities: [{ name: `${status.name}`, type: ActivityType.Playing }] });
|
||||
switch (status.type) {
|
||||
case "Playing":
|
||||
client.user.setPresence({ activities: [{ name: `${status.name}`, type: ActivityType.Playing }] });
|
||||
break;
|
||||
case "Watching":
|
||||
client.user.setPresence({ activities: [{ name: `${status.name}`, type: ActivityType.Watching }] });
|
||||
break;
|
||||
case "Listening":
|
||||
client.user.setPresence({ activities: [{ name: `${status.name}`, type: ActivityType.Listening }] });
|
||||
break;
|
||||
}
|
||||
}, 300000); // update every 5 mins
|
||||
|
||||
}, 30000); // update every 5 mins
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user