Class: Bitbot::Plugin
- Inherits:
-
Object
- Object
- Bitbot::Plugin
- Includes:
- Balance, Common, Deposit, Help, History, Tip, TipStats, UpdateAddresses, UpdateExchangeRates, Withdraw, Cinch::Plugin
- Defined in:
- lib/bitbot/plugin.rb
Instance Method Summary collapse
-
#initialize(bot) ⇒ Plugin
constructor
A new instance of Plugin.
Methods included from UpdateExchangeRates
Methods included from UpdateAddresses
#cache_file_path, #on_update_addresses, #process_new_transactions_for_address
Methods included from Withdraw
Methods included from TipStats
Methods included from Tip
Methods included from History
Methods included from Deposit
Methods included from Balance
Methods included from Help
Methods included from Common
#blockchain, #cached_addresses, #cached_addresses=, #db, #exchange_rate, #exchange_rates=, #satoshi_to_str, #satoshi_to_usd, #satoshi_with_usd, #user_with_username
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 |