Merged master branch

master
jef 2020-08-12 18:42:43 +02:00
parent f344562702
commit fda5e1b3d7
1 changed files with 4 additions and 2 deletions

View File

@ -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: