Class: Bitbot::Plugin

Inherits:
Object
  • Object
show all
Includes:
Balance, Common, Deposit, Help, History, Tip, TipStats, UpdateAddresses, UpdateExchangeRates, Withdraw, Cinch::Plugin
Defined in:
lib/bitbot/plugin.rb

Instance Method Summary collapse

Methods included from UpdateExchangeRates

#on_update_exchange_rates

Methods included from UpdateAddresses

#cache_file_path, #on_update_addresses, #process_new_transactions_for_address

Methods included from Withdraw

#on_withdraw

Methods included from TipStats

#on_tipstats

Methods included from Tip

#on_tip

Methods included from History

#on_history

Methods included from Deposit

#on_deposit

Methods included from Balance

#on_balance

Methods included from Help

#on_help

Methods included from Common

#blockchain, #cached_addresses, #cached_addresses=, #db, #exchange_rate, #exchange_rates=, #satoshi_to_str, #satoshi_to_usd, #satoshi_with_usd, #str_to_satoshi, #user_with_username, #withdrawal_fee

Constructor Details

#initialize(bot) ⇒ Plugin

Returns a new instance of Plugin.



30
31
32
33
# File 'lib/bitbot/plugin.rb', line 30

def initialize(bot)
  super
  Bitbot::Database.new(File.join(config['data']['path'], "bitbot.db")).upgrade_schema()
end