protonbot 0.3.6 → 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/protonbot/bot.rb +4 -2
- data/lib/protonbot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 623bf1ce357e984a8e6df87d98df190dade198de
|
|
4
|
+
data.tar.gz: 59043c9ef3b80a708f6a9e8cb0338fbab80623b3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a8ae75dfeaf74bdaf38ba693665430be3906228e1410235ed6c7155d132f5945abc5c54dfb5739c04d80bef06955af768bb25ba1587c085c3ae4ab9f4735e628
|
|
7
|
+
data.tar.gz: 3efa2a206291b2f415c4ef44a9544d72bf99a13626c6689faa214101d8160e427c97063a9305cc5bba6ef95bada1c10f431d5269a360979b97b35d97c9ba310b
|
data/lib/protonbot/bot.rb
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Main bot class. Use it to create the bot
|
|
2
2
|
class ProtonBot::Bot
|
|
3
|
-
attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs, :core
|
|
3
|
+
attr_reader :log, :_log, :dbs, :plugins, :conf, :plugs, :plugthrs, :core, :db_cross
|
|
4
4
|
|
|
5
5
|
# @yield Main bot's block. You'll use it for configuring bot.
|
|
6
6
|
def initialize(&block)
|
|
@@ -15,6 +15,9 @@ class ProtonBot::Bot
|
|
|
15
15
|
configure
|
|
16
16
|
@log.info('Processed config block')
|
|
17
17
|
|
|
18
|
+
Dir.mkdir('dbs/') unless File.exist?(File.expand_path('./dbs/'))
|
|
19
|
+
@db_cross = Heliodor::DB.new("dbs/pb-cross.db", true)
|
|
20
|
+
|
|
18
21
|
@parr = []
|
|
19
22
|
@plugins = {}
|
|
20
23
|
plugins_load
|
|
@@ -23,7 +26,6 @@ class ProtonBot::Bot
|
|
|
23
26
|
@dbs = {}
|
|
24
27
|
@plugs = {}
|
|
25
28
|
@plugthrs = {}
|
|
26
|
-
Dir.mkdir('dbs/') unless File.exist?(File.expand_path('./dbs/'))
|
|
27
29
|
@conf['servers'].each do |k_, v_|
|
|
28
30
|
k = k_.clone
|
|
29
31
|
v = v_.clone
|
data/lib/protonbot/version.rb
CHANGED