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: fix typo console log

Author: Salman Wahib <[email protected]>
Co-authored-by: hexskrt <[email protected]>
  • Loading branch information
sxlmnwb and hexskrt authored Aug 16, 2023
2 parents 7156ba5 + 3963073 commit e5726dd
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 @@ -60,14 +60,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 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 @@ -107,14 +107,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 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 e5726dd

Please sign in to comment.