use vars more + help command rewrite
This commit is contained in:
parent
c1c2a6b86b
commit
e130dbec7c
4 changed files with 154 additions and 130 deletions
|
@ -1,5 +1,5 @@
|
|||
const ora = require("ora");
|
||||
const config = require("../../config");
|
||||
const config = require("../../vars");
|
||||
const chalk = require("chalk");
|
||||
const BotSpinner = new ora({
|
||||
discardStdin: false
|
||||
|
@ -12,38 +12,38 @@ const ServerSpinner = new ora({
|
|||
});
|
||||
|
||||
module.exports = async = {
|
||||
starting: async function() {
|
||||
BotSpinner.text = `${config.name} v${config.version} is starting`;
|
||||
starting: async function () {
|
||||
BotSpinner.text = `${config.name} - v${config.version} is starting`;
|
||||
BotSpinner.spinner = "moon";
|
||||
BotSpinner.start();
|
||||
return BotSpinner;
|
||||
},
|
||||
stopSpinner: function() {
|
||||
stopSpinner: function () {
|
||||
return BotSpinner.stop();
|
||||
},
|
||||
hasStarted: async function() {
|
||||
BotSpinner.succeed(`${config.name} v${config.version} has started`);
|
||||
hasStarted: async function () {
|
||||
BotSpinner.succeed(`${config.name} - v${config.version} has started`);
|
||||
return;
|
||||
},
|
||||
shardReady: async function(text) {
|
||||
shardReady: async function (text) {
|
||||
shardSpinner.text = text;
|
||||
shardSpinner.spinner = "moon";
|
||||
return shardSpinner.start();
|
||||
},
|
||||
shardSpinnerStarted: function() {
|
||||
shardSpinnerStarted: function () {
|
||||
return shardSpinner.succeed();
|
||||
},
|
||||
servers: {
|
||||
setup: async function(server) {
|
||||
setup: async function (server) {
|
||||
ServerSpinner.text = `Setting up ${chalk.red(server.name)} | ${chalk.red(
|
||||
server.id
|
||||
)}...`;
|
||||
ServerSpinner.start();
|
||||
},
|
||||
fin: async function(server) {
|
||||
fin: async function (server) {
|
||||
ServerSpinner.succeed(
|
||||
`${chalk.red(server.name)} | ${chalk.red(server.id)} has been set up.`
|
||||
);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue