|
|
@ -21,9 +21,6 @@ class tweetCommand extends Command {
|
|
|
|
{
|
|
|
|
{
|
|
|
|
id: 'text',
|
|
|
|
id: 'text',
|
|
|
|
type: 'string',
|
|
|
|
type: 'string',
|
|
|
|
prompt: {
|
|
|
|
|
|
|
|
start: 'Write something to tweet',
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
match: 'rest'
|
|
|
|
match: 'rest'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -40,6 +37,8 @@ class tweetCommand extends Command {
|
|
|
|
let date = new Date();
|
|
|
|
let date = new Date();
|
|
|
|
let Attachment = (message.attachments).array();
|
|
|
|
let Attachment = (message.attachments).array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!Attachment[0] && !args.text) return message.channel.send('You need to input something for me to tweet!');
|
|
|
|
|
|
|
|
|
|
|
|
let T = new Twit({
|
|
|
|
let T = new Twit({
|
|
|
|
consumer_key: twiConsumer,
|
|
|
|
consumer_key: twiConsumer,
|
|
|
|
consumer_secret: twiConsumerSecret,
|
|
|
|
consumer_secret: twiConsumerSecret,
|
|
|
|