mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-18 16:07:31 -07:00
19 lines
340 B
TypeScript
19 lines
340 B
TypeScript
import Meta from '../../../models/meta';
|
|
import define from '../define';
|
|
|
|
export const meta = {
|
|
requireCredential: false,
|
|
|
|
desc: {
|
|
'en-US': 'Get the instance\'s statistics'
|
|
},
|
|
|
|
params: {
|
|
}
|
|
};
|
|
|
|
export default define(meta, () => new Promise(async (res, rej) => {
|
|
const meta = await Meta.findOne();
|
|
|
|
res(meta ? meta.stats : {});
|
|
}));
|