2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-31 06:26:04 +00:00

add custom prefixes

This commit is contained in:
Nick80835
2021-03-23 20:01:27 -04:00
parent 5986870479
commit b47088fe4b
5 changed files with 43 additions and 5 deletions

View File

@@ -136,7 +136,7 @@ class Loader():
return await self.client.loop.run_in_executor(self.thread_pool, partial(function, *args))
def prefix(self):
return (self.settings.get_list('cmd_prefix') or ['.'])[0]
return ", ".join(self.settings.get_list("hard_cmd_prefix") or ["/"])
def _find_all_modules(self):
module_paths = glob.glob(dirname(__file__) + "/modules/*.py")