UNPKG

eris-boiler

Version:
22 lines (20 loc) 489 B
const { Command } = require('../../lib') const { status: { getActivity } } = require('../../util') module.exports = new Command({ name: 'view', description: 'View all statuses', run: async (bot) => { const dbStatuses = await bot.sm.getStatuses() const statuses = dbStatuses.map((dbStatus) => dbStatus.toJSON()) return `Current random statuses:\n${ statuses.map((status) => getActivity(status.type) + ' ' + status.name) .join(',\n') }` } })