Sha256: 69f7f084af5dea30dcc29152eee51568c6db275766dd2bd03e682c2da4dde59b

Contents?: true

Size: 421 Bytes

Versions: 7

Compression:

Stored size: 421 Bytes

Contents

require 'elephrame'

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

mix.on_reply { |bot, post|
  bot.reply("Thanks for helping me test stuff :3")
}

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.5 examples/periodic_interact.rb
elephrame-0.4.6 examples/combined.rb
elephrame-0.4.5 examples/combined.rb
elephrame-0.4.4 examples/combined.rb
elephrame-0.4.3 examples/combined.rb
elephrame-0.4.2 examples/combined.rb
elephrame-0.4.1 examples/combined.rb