Skip to content

Commit

Permalink
Merge pull request #1 from hexskrt/master-1
Browse files Browse the repository at this point in the history
useCommand: bumped new fix typo console log

Change-Id: e5726dd

Signed-off-by: Salman Wahib <[email protected]>
  • Loading branch information
sxlmnwb committed Aug 18, 2023
1 parent 2ea0a1b commit 82caf5d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/useCommand.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ module.exports = async function useCommand(msg, client, chat) {
const stopMessages = await stopLoop(networks, chat);
for (const stopMessage of stopMessages) {
await msg.reply(stopMessage)
console.log(chalk.white.bgRedBright.bold('STOPING') + " [" + chalk.redBright(`${stopMessage}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
console.log(chalk.white.bgRedBright.bold('STOPPING') + " [" + chalk.redBright(`${stopMessage}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
}
}
} else {
for (const network of networks) {
try {
await useMainnet(network);
console.log(chalk.white.bgYellowBright.bold('GET') + " [" + chalk.blueBright(`${network}`) + "] PREPERING FOR LOOPING");
console.log(chalk.white.bgYellowBright.bold('GET') + " [" + chalk.blueBright(`${network}`) + "] PREPARING MAINNET FOR LOOPING");
} catch (error) {
console.error(chalk.white.bgRed.bold('ERROR') + " [" + chalk.redBright(`${error.message}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
errors.push(error.message);
Expand Down Expand Up @@ -118,14 +118,14 @@ module.exports = async function useCommand(msg, client, chat) {
const stopMessages = await stopLoop(networks, chat);
for (const stopMessage of stopMessages) {
await msg.reply(stopMessage)
console.log(chalk.white.bgRedBright.bold('STOPING') + " [" + chalk.redBright(`${stopMessage}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
console.log(chalk.white.bgRedBright.bold('STOPPING') + " [" + chalk.redBright(`${stopMessage}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
}
}
} else {
for (const network of networks) {
try {
await useTestnet(network);
console.log(chalk.white.bgYellowBright.bold('GET') + " [" + chalk.blueBright(`${network}`) + "] PREPERING FOR LOOPING");
console.log(chalk.white.bgYellowBright.bold('GET') + " [" + chalk.blueBright(`${network}`) + "] PREPARING TESTNET FOR LOOPING");
} catch (error) {
console.error(chalk.white.bgRed.bold('ERROR') + " [" + chalk.redBright(`${error.message}`) + "] " + chalk.green('RECIPIENT') + " [" + chalk.blueBright(`${userName}`) + "]");
errors.push(error.message);
Expand Down

0 comments on commit 82caf5d

Please sign in to comment.