Do you want a basic command that just rolls a number for you? Well here ya go. Simply create a slash command named roll using autocodes slash command builder.
const lib = require('lib')({token: process.env.STDLIB_SECRET_TOKEN}); // authenticates you with the API standard library
const roll = Math.floor(Math.random() * 1000); // This is the max roll. Change this number to what you want.
await lib.discord.channels['@0.3.2'].messages.create({
channel_id: context.params.event.channel_id, content: '',
embeds: [
{
type: 'rich',
title: 'Your Roll:',
description: `${roll}`,
color: 015479 // This is dark blue but you can change it to any color you want
}
]
});