parent
f2d3f1eeb7
commit
3bdfb83d62
@ -1,7 +1,5 @@ |
|||||||
const Discord = require('discord.js'); |
|
||||||
|
|
||||||
module.exports = async client => { |
module.exports = async client => { |
||||||
client.prefix = "n?"; |
client.basePrefix = client.config.options.dev ? client.config.options.prefix || "n!" : "n?"; |
||||||
|
|
||||||
require('../../startup/run/hello')(client); // startup info
|
require('../../startup/run/hello')(client); // startup info
|
||||||
require('../../startup/run/setstatus')(client); |
require('../../startup/run/setstatus')(client); |
||||||
|
@ -0,0 +1,20 @@ |
|||||||
|
const chalk = require('chalk'); |
||||||
|
|
||||||
|
const {Tag, TagFilter} = require('../../../util/ts/tagfilter'); |
||||||
|
|
||||||
|
module.exports = client => { |
||||||
|
const options = new TagFilter([ |
||||||
|
new Tag(['dev', 'd', 'developer', 'test'], 'dev', 'toggle'), |
||||||
|
new Tag(['prefix', 'devprefix'], 'prefix', 'append') |
||||||
|
]).test(process.argv.slice(2).join(" ")); |
||||||
|
client.config.options = {}; |
||||||
|
|
||||||
|
if (Object.keys(options).length) { //log and set options
|
||||||
|
client.log(`${chalk.gray.bold("Arguments detected.")}`, {source: 'args'}, 0, 1); |
||||||
|
Object.keys(options).forEach(arg => { |
||||||
|
client.config.options[arg] = options[arg]; |
||||||
|
client.log(`${chalk.gray.bold(arg)}${chalk.gray(':')} ${chalk.blue(options[arg])}`, {source: 'args'}); |
||||||
|
}); |
||||||
|
console.log(''); |
||||||
|
} |
||||||
|
}; |
Loading…
Reference in new issue