Fixed a bug i guess
This commit is contained in:
parent
52e25268aa
commit
19039ef703
|
@ -7,7 +7,7 @@ local command = class("Command")
|
||||||
local acl = import("classes.command-acl")
|
local acl = import("classes.command-acl")
|
||||||
local discordia = import("discordia")
|
local discordia = import("discordia")
|
||||||
function command:__init(name,callback)
|
function command:__init(name,callback)
|
||||||
assert(name:match("^[-_%w]+$"),"Name can only contain alphanumeric characters, underscores or dashes")
|
assert(name:match("^%S+$"),"Name cannot contain any space characters")
|
||||||
self.rules = acl()
|
self.rules = acl()
|
||||||
self.name = name
|
self.name = name
|
||||||
self.timer = discordia.Date():toMilliseconds()
|
self.timer = discordia.Date():toMilliseconds()
|
||||||
|
|
Loading…
Reference in New Issue