lib/lita/handlers/tweet.rb in lita-tweet-0.4.0 vs lib/lita/handlers/tweet.rb in lita-tweet-0.4.1
- old
+ new
@@ -40,10 +40,12 @@
account = account_for(response.message.source)
return response.reply(no_accounts_message) if account.nil?
tweet = account.tweet(text)
twitter_data.set_last_tweet(account.username, tweet.id)
- response.reply(tweet.url.to_s)
+ # We assume that you have e.g. a Slack integration that shows all tweets
+ # so instead of response.reply(tweet.url.to_s), we merely say:
+ response.reply("Tweet posted!")
end
def untweet(response)
account = account_for(response.message.source)
return response.reply(no_accounts_message) if account.nil?