aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/config.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/core/config.rb b/core/config.rb
index 242f030..466e435 100644
--- a/core/config.rb
+++ b/core/config.rb
@@ -10,22 +10,17 @@ module Dinobot
def initialize
@store = Dinobot::Core::Store.new('config')
- @data = @store.data[:data]
-
- if @data.nil?
- @data = Hash.new
+ @data = @store.data
+ if @data.empty?
@data[:debug] = false
-
- @data[:trigger] = Hash.new
- @data[:trigger][:global] = '!'
+ @data[:trigger] = {global: '!'}
save
end
end
def save
- @store.data[:data] = @data
@store.save
end