mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 22:23:03 -04:00
a lot of thingssss
This commit is contained in:
parent
eb0ba140f3
commit
726861294b
14 changed files with 420 additions and 24 deletions
|
@ -1,14 +1,26 @@
|
|||
|
||||
const { createEmbed } = require("../../../../labscore/utils/embed");
|
||||
const { editOrReply } = require("../../../../labscore/utils/message");
|
||||
const { getUser } = require("../../../../labscore/utils/users");
|
||||
|
||||
module.exports = {
|
||||
name: 'test',
|
||||
label: 'input',
|
||||
metadata: {
|
||||
description: 'test',
|
||||
examples: ['test'],
|
||||
category: 'dev',
|
||||
usage: 'test'
|
||||
},
|
||||
run: async (context) => {
|
||||
return context.editOrReply('test successful.')
|
||||
run: async (context, args) => {
|
||||
try{
|
||||
|
||||
let u = await getUser(context, args.input)
|
||||
if(!u) return editOrReply(context, { embeds: [createEmbed("warning", context, "No users found.")] })
|
||||
return editOrReply(context, { embeds: [createEmbed("default", context, {
|
||||
description: u.mention
|
||||
})] })
|
||||
}catch(e){
|
||||
console.log(e)
|
||||
}
|
||||
},
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue