Fixed a bug i guess

This commit is contained in:
Yessiest 2022-05-28 00:07:46 +04:00
parent 52e25268aa
commit 19039ef703
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ local command = class("Command")
local acl = import("classes.command-acl")
local discordia = import("discordia")
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.name = name
self.timer = discordia.Date():toMilliseconds()