Merged master branch
parent
f344562702
commit
fda5e1b3d7
|
@ -40,8 +40,10 @@ class Frank(discord.Client):
|
||||||
cmd = shlex.split(message.content.strip())
|
cmd = shlex.split(message.content.strip())
|
||||||
|
|
||||||
if cmd[0] == self.PREFIX:
|
if cmd[0] == self.PREFIX:
|
||||||
matched_mods = (mod for mod in self._loaded_modules if
|
matched_mods = (
|
||||||
mod.match(cmd[1]))
|
mod for mod in self._loaded_modules if mod.match(cmd[1])
|
||||||
|
)
|
||||||
|
|
||||||
module = next(matched_mods, None)
|
module = next(matched_mods, None)
|
||||||
|
|
||||||
if module:
|
if module:
|
||||||
|
|
Reference in New Issue