TeamRizu / OutFox-Discord-Bot

Project OutFox Discord Bot
Apache License 2.0
1 stars 0 forks source link

[Function] Easy Argument Picker #8

Closed moruzerinho6 closed 3 years ago

moruzerinho6 commented 3 years ago

The function should accept the entire message content and return a object which includes keys which points to what each parameter is for.

Example:

// Files
const argument = require('../utils/argument.js')

const userInput = message.content // fox.userlanguage pt-br
const filteredArgument = argument.filter(userInput)

filteredArgument.command // userlanguage
filteredArgument.arguments // ['pt-br']