Sha256: 7a6aa649ac8aa4aa29a3cba7128c004a3fbcb8a65f7406c5bcb811536535dc32
Contents?: true
Size: 467 Bytes
Versions: 1
Compression:
Stored size: 467 Bytes
Contents
require 'elephrame' interacter = Elephrame::Bots::Interact.new interacter.on_reply { |bot, post| bot.post("@#{post.account.acct} Thanks for helping me test stuff :3", reply_id: post.id, visibility: post.visibility) } interacter.on_fave { |bot, notif| puts "#{notif.account.acct} just faved post #{notif.status.content}" } interacter.on_boost { |bot, notif| puts "#{notif.account.acct} just boosted post #{notif.status.content}" } interacter.run
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
elephrame-0.2.0 | examples/interact.rb |