2
0
mirror of https://github.com/Nick80835/microbot synced 2025-08-30 22:16:05 +00:00

add support for multiple, comma separated, owner IDs

This commit is contained in:
Nick80835
2020-04-17 16:54:42 -04:00
parent fba27e799b
commit 1c082f17ab

View File

@@ -23,7 +23,7 @@ class CommandHandler():
pattern_match = search(self.pattern_template.format("" if value["noprefix"] else prefix, key), event.text)
if pattern_match:
if value["sudo"] and str(event.from_id) != self.settings.get_config("owner_id"):
if value["sudo"] and str(event.from_id) not in self.settings.get_config("owner_id").split(","):
print(f"Attempted sudo command ({event.text}) from ID {event.from_id}")
continue