rotate avatars from a folder with fs watch
This commit is contained in:
2
index.js
2
index.js
@@ -68,6 +68,8 @@ client.on(Events.InteractionCreate, async interaction => {
|
||||
client.once(Events.ClientReady, readyClient => {
|
||||
console.log(`Discord: Connected as ${readyClient.user.tag}`);
|
||||
client.user.setActivity(config.status, { type: ActivityType.Custom });
|
||||
const avatarRotation = require('./lib/avatarRotation');
|
||||
avatarRotation.init(client);
|
||||
});
|
||||
client.login(config.token);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user