Sha256: e5caea79fe4954b9c7a630d430cf670142ef41bb9ffac362757073b77302fdf3

Contents?: true

Size: 560 Bytes

Versions: 7

Compression:

Stored size: 560 Bytes

Contents

require 'elephrame'

interacter = Elephrame::Bots::Interact.new

interacter.on_reply { |bot|

  #bot.post("@#{post.account.acct} Thanks for helping me test stuff :3",
  #           reply_id: post.id, visibility: post.visibility)
  
  ## this can be simplified to one line
  bot.reply("Thanks for helping me test stuff :3")
}

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

7 entries across 7 versions & 1 rubygems

Version Path
elephrame-0.5 examples/interact.rb
elephrame-0.4.6 examples/interact.rb
elephrame-0.4.5 examples/interact.rb
elephrame-0.4.4 examples/interact.rb
elephrame-0.4.3 examples/interact.rb
elephrame-0.4.2 examples/interact.rb
elephrame-0.4.1 examples/interact.rb