@ -111,7 +111,7 @@ class tweetCommand extends Command {
if(err){
if(err){
console.log('OH NO AN ERROR!!!!!!!');
console.log('OH NO AN ERROR!!!!!!!');
console.error(err);
console.error(err);
returnmessage.channel.send('OH NO!!! AN ERROR HAS OCCURED!!! please hold on while i find what\'s causing this issue! ');
returnmessage.channel.send('OH NO!!! AN ERROR HAS occurred!!! please hold on while i find what\'s causing this issue! ');
}else{
}else{
Tweet(data);
Tweet(data);
}
}
@ -126,7 +126,7 @@ class tweetCommand extends Command {
}
}
}catch(err){
}catch(err){
console.error(err);
console.error(err);
returnmessage.channel.send('Oh no, an error has occured :(');
returnmessage.channel.send('Oh no, an error has occurred :(');
}
}
functionTweet(data){
functionTweet(data){
@ -153,7 +153,7 @@ class tweetCommand extends Command {
if(err.code==326)returnmessage.channel.send(err.message);// To protect our users from spam and other malicious activity, this account is temporarily locked.
if(err.code==326)returnmessage.channel.send(err.message);// To protect our users from spam and other malicious activity, this account is temporarily locked.
console.error('OH NO!!!!');
console.error('OH NO!!!!');
console.error(err);
console.error(err);
returnmessage.channel.send('OH NO!!! AN ERROR HAS OCCURED!!! please hold on while i find what\'s causing this issue! ');
returnmessage.channel.send('OH NO!!! AN ERROR HAS occurred!!! please hold on while i find what\'s causing this issue! ');
@ -47,7 +47,7 @@ class translateCommand extends Command {
if(response.code=='502')
if(response.code=='502')
returnmessage.channel.send(`${response.message}, you probably didn't input the correct language code, you can check them here! https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/`);
returnmessage.channel.send(`${response.message}, you probably didn't input the correct language code, you can check them here! https://tech.yandex.com/translate/doc/dg/concepts/api-overview-docpage/`);
elseif(response.code!='200')
elseif(response.code!='200')
returnmessage.channel.send('An error has occured');
returnmessage.channel.send('An error has occurred');