mirror of
https://github.com/Nick80835/microbot
synced 2025-09-03 16:05:49 +00:00
its time to get funcy
This commit is contained in:
@@ -122,6 +122,9 @@ class Loader():
|
|||||||
|
|
||||||
return decorator
|
return decorator
|
||||||
|
|
||||||
|
def get_cmds_by_func(self, func) -> list:
|
||||||
|
return [i for i in self.command_handler.outgoing_commands if i.function == func]
|
||||||
|
|
||||||
async def get_text(self, event, with_reply=True, return_msg=False, default=None):
|
async def get_text(self, event, with_reply=True, return_msg=False, default=None):
|
||||||
if event.args:
|
if event.args:
|
||||||
if return_msg:
|
if return_msg:
|
||||||
|
Reference in New Issue
Block a user