Sha256: 2dab17585ef198f56837edaedd27323471d7f54065c20b1c7c40f34786c9a93e
Contents?: true
Size: 395 Bytes
Versions: 3
Compression:
Stored size: 395 Bytes
Contents
require 'elephrame' # create a bot that watches the public timeline # (this gives us the largest sample size) watcher = Elephrame::Bots::Watcher.new 'public' watcher.run do |bot, post| # if the account's profile doesn't contain no bot # we print the account's handle and the post's content if not bot.no_bot? post.account.id puts "#{post.account.acct}: #{post.content}" end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
elephrame-0.5 | examples/notbot_check.rb |
elephrame-0.4.6 | examples/notbot_check.rb |
elephrame-0.4.5 | examples/notbot_check.rb |