mirror of
https://github.com/koloideal/Argenta.git
synced 2026-06-10 18:15:28 +03:00
Update documentation and code snippets
This commit is contained in:
@@ -80,6 +80,9 @@ class Router:
|
||||
|
||||
if command_name.lower() in self.triggers:
|
||||
raise RepeatedTriggerNameException()
|
||||
|
||||
if command_name.lower() in self.aliases:
|
||||
raise RepeatedAliasNameException({command_name.lower()})
|
||||
|
||||
if overlapping := (self.aliases | self.triggers) & set(map(lambda x: x.lower(), command.aliases)):
|
||||
raise RepeatedAliasNameException(overlapping)
|
||||
|
||||
@@ -1,4 +1,10 @@
|
||||
__all__ = ["RepeatedFlagNameException", "RequiredArgumentNotPassedException", "TriggerContainSpacesException"]
|
||||
__all__ = [
|
||||
"RepeatedFlagNameException",
|
||||
"RepeatedTriggerNameException",
|
||||
"RepeatedAliasNameException",
|
||||
"RequiredArgumentNotPassedException",
|
||||
"TriggerContainSpacesException",
|
||||
]
|
||||
|
||||
from typing import override
|
||||
|
||||
|
||||
Reference in New Issue
Block a user