Sha256: 0cabd7db777f1153ceaf70c2a73aceac46838f33cb3c4e4f76347b05a9010d95

Contents?: true

Size: 501 Bytes

Versions: 7

Compression:

Stored size: 501 Bytes

Contents

require 'elephrame'

mix = Elephrame::Bots::PeriodInteract.new '30s'

mix.on_reply { |bot, post|
  bot.post("@#{post.account.acct} Thanks for helping me test stuff :3",
           reply_id: post.id, visibility: post.visibility)
}

mix.on_fave { |bot, notif|
  puts "#{notif.account.acct} just faved post #{notif.status.content}"
}

mix.on_boost { |bot, notif|
  puts "#{notif.account.acct} just boosted post #{notif.status.content}"
}

mix.run do |bot|
  bot.post('testing', visibility: 'direct')
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
elephrame-0.4.0 examples/combined.rb
elephrame-0.3.7 examples/combined.rb
elephrame-0.3.6 examples/combined.rb
elephrame-0.3.4 examples/combined.rb
elephrame-0.3.3 examples/combined.rb
elephrame-0.3.2 examples/combined.rb
elephrame-0.2.0 examples/combined.rb