Tired of changing status from Autocode? Here is a command that makes it simpler to change your bot's status from any channel. To make it work you need to make a slash command called `/status` with two required text options for status and activity, and an optional option for a url for streaming statuses. Send a dm to Unpredictable#0001 if you have questions!
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
let actype = context.params.event.data.options[0].value;
let acstatus = context.params.event.data.options[1].value;
let acdesc=context.params.event.data.options[2].value;
let acurl= context.params.event.data.options[3] ? context.params.event.data.options[3].value : null
const object = {
activity_name: `${acdesc}`,
activity_type: `${actype}`,
status: `${acstatus}`
}
if(actype=="STREAMING") object.url=`${acurl}`
await lib.discord.users['@0.1.3'].me.status.update(object);
//Unpredictable#0001