mirror of
https://github.com/Art-Portal/April.git
synced 2024-11-16 11:37:37 +01:00
Add toggleable status and pfp change
This commit is contained in:
parent
0c94666f03
commit
e1cff46942
@ -12,5 +12,7 @@
|
|||||||
"username": "user",
|
"username": "user",
|
||||||
"password": "password"
|
"password": "password"
|
||||||
},
|
},
|
||||||
"errorWebhookURL": "https://discord.com/api/webhooks/123456789/aBcDeFgHiJkLmNoPqRsTuVwXyZ"
|
"errorWebhookURL": "https://discord.com/api/webhooks/123456789/aBcDeFgHiJkLmNoPqRsTuVwXyZ",
|
||||||
|
"cycleStatuses": true,
|
||||||
|
"cyclePfPs": true
|
||||||
}
|
}
|
@ -1,4 +1,6 @@
|
|||||||
import { ActivityType } from "discord.js";
|
import { ActivityType } from "discord.js";
|
||||||
|
import config from '../config.json' assert { type: 'json' };
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'ready',
|
name: 'ready',
|
||||||
once: true,
|
once: true,
|
||||||
@ -32,12 +34,16 @@ export default {
|
|||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
let Random = Math.floor(Math.random() * (status_list.length));
|
let Random = Math.floor(Math.random() * (status_list.length));
|
||||||
let Random2 = Math.floor(Math.random() * (profilepictures_list.length));
|
let Random2 = Math.floor(Math.random() * (profilepictures_list.length));
|
||||||
client.user.setActivity({
|
if(config.cycleStatuses){
|
||||||
type: ActivityType.Custom,
|
client.user.setActivity({
|
||||||
name: "custom_status",
|
type: ActivityType.Custom,
|
||||||
state: status_list[Random]
|
name: "custom_status",
|
||||||
});
|
state: status_list[Random]
|
||||||
client.user.setAvatar(profilepictures_list[Random2]);
|
});
|
||||||
|
}
|
||||||
|
if(config.cyclePfPs){
|
||||||
|
client.user.setAvatar(profilepictures_list[Random2]);
|
||||||
|
}
|
||||||
}, 300000);
|
}, 300000);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user