Class: Lita::Handlers::HeadlineTips

Inherits:
Handler
  • Object
show all
Defined in:
lib/lita/handlers/headline_tips.rb

Constant Summary collapse

TIPS =
['Shocking: Readers absorb the first 3 and last 3 words of a headline. Start strong, finish even stronger.',
 'When should you use a question headline? When it addresses the reader directly.',
 'Be specific: Here are 12 ways to improve your headlines today (Not broad: How to improve your headlines)',
 'Make sure your headlines work out of context. Will they make sense when shared in social media?',
 'More headline tips from Poynter: http://www.poynter.org/2011/10-questions-to-help-you-write-better-headlines/140675/',
 'Omit needless words.',
 'When helpful, use one of these words: Top, Why, How, Will, New, Secret, Future, Your, Best, Worst.',
 'Chartbeat recently disproved some of these tips. Sort of. Get the data: http://blog.chartbeat.com/2015/11/20/youll-never-guess-how-chartbeats-data-scientists-came-up-with-the-single-greatest-headline/',
 'Put yourself in the shoes of your audience and answer their obvious question.',
 'Long headlines can work well, but only the first 65 characters are visible in Google search.',
 'https://imgs.xkcd.com/comics/headlines.png '
]

Instance Method Summary collapse

Instance Method Details

#tip(request) ⇒ Object



23
24
25
# File 'lib/lita/handlers/headline_tips.rb', line 23

def tip(request)
  request.reply(TIPS.sample)
end