diff --git a/config.example.json b/config.example.json index d632040..515738e 100644 --- a/config.example.json +++ b/config.example.json @@ -12,5 +12,7 @@ "username": "user", "password": "password" }, - "errorWebhookURL": "https://discord.com/api/webhooks/123456789/aBcDeFgHiJkLmNoPqRsTuVwXyZ" -} \ No newline at end of file + "errorWebhookURL": "https://discord.com/api/webhooks/123456789/aBcDeFgHiJkLmNoPqRsTuVwXyZ", + "cycleStatuses": true, + "cyclePfPs": true +} diff --git a/events/ready.mjs b/events/ready.mjs index d089fa6..ca36861 100644 --- a/events/ready.mjs +++ b/events/ready.mjs @@ -1,4 +1,6 @@ import { ActivityType } from "discord.js"; +import config from '../config.json' assert { type: 'json' }; + export default { name: 'ready', once: true, @@ -32,12 +34,16 @@ export default { setInterval(() => { let Random = Math.floor(Math.random() * (status_list.length)); let Random2 = Math.floor(Math.random() * (profilepictures_list.length)); - client.user.setActivity({ - type: ActivityType.Custom, - name: "custom_status", - state: status_list[Random] - }); - client.user.setAvatar(profilepictures_list[Random2]); + if(config.cycleStatuses){ + client.user.setActivity({ + type: ActivityType.Custom, + name: "custom_status", + state: status_list[Random] + }); + } + if(config.cyclePfPs){ + client.user.setAvatar(profilepictures_list[Random2]); + } }, 300000); } -} \ No newline at end of file +}