Class: Bitbot::Plugin

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

Overview

require ‘bitbot/plugin/prize’

Instance Method Summary collapse

Methods included from Online

#on_doc

Methods included from Doc

#on_doc

Methods included from Txfee

#on_txfee

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

include Bitbot::Prize



38
39
40
41
# File 'lib/bitbot/plugin.rb', line 38

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