This command here will randomly grab one of the names of the doctor's companions.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN});
// The API call
const Generator = require('doctor-who');
// The Gen that will get all names
const gen = new Generator();
gen.random();
// The Prefix
if (context.params.event.content.startsWith(`?dw_names`)) {
// This will Random up the names
// Sends the messages ofc
await lib.discord.channels['@0.2.0'].messages.create({
channel_id: context.params.event.channel_id,
content: `${gen.random()}`,
});
}