Changes your Discord bot status every 3 minutes. If the random status activity is "STREAMING", will add a link.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let activitynameslist = [
`/help - Meme Central`,
`DM me for support`,
`I am a robot`,
]
let ActivityChoice = Math.floor(Math.random() * activitynameslist.length);
let activity = activitynameslist[ActivityChoice];
// Do not add some random Things from this part. Discord has limited activity type and status.
// ONLINE, DND, IDLE.
// Activity Type List
let activitytypelist = [
`STREAMING`,
`GAME`,
`COMPETING`
]
let ActypeChoice = Math.floor(Math.random() * activitytypelist.length);
let activitytype = activitytypelist[ActypeChoice];
// End of Activity Type
//Start of status
let status = [
'ONLINE',
`DND`,
`IDLE`
]
let statusChoice = Math.floor(Math.random() * status.length);
let statustype = status[statusChoice];
let statusParams = {
activity_name: `${activity}`,
activity_type: `${activitytype}`,
status: `${statustype}`
};
if (activitytype === 'STREAMING') {
statusParams.url = 'https://twitch.tv/YourBudTevin';
}
await lib.discord.users['@0.1.1'].me.status.update(statusParams);