Default access_level → 5
parent
b98bae59de
commit
dad51df229
|
@ -5,7 +5,7 @@ class Repost
|
||||||
attr_accessor :commands
|
attr_accessor :commands
|
||||||
|
|
||||||
def register_command(keyword, &code)
|
def register_command(keyword, &code)
|
||||||
access_level = Config.lookup("commands::#{keyword}::access_level", 5)
|
access_level = Config.lookup("commands::#{keyword}::access_level", 0)
|
||||||
|
|
||||||
self.commands = [] if self.commands.nil?
|
self.commands = [] if self.commands.nil?
|
||||||
self.commands << {
|
self.commands << {
|
||||||
|
|
Loading…
Reference in New Issue