From a19f40b0a9329c7f3c3cf56d7deb5a4bc1ef32ff Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 6 May 2020 11:17:51 +0200 Subject: [PATCH] Use __url__ in help message --- sid/sid.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sid/sid.py b/sid/sid.py index f475bd4..b9c7df7 100644 --- a/sid/sid.py +++ b/sid/sid.py @@ -23,6 +23,8 @@ import traceback import slixmpp +from sid import __url__ + def botcmd(*args, **kwargs): """Decorator for bot command functions @@ -191,8 +193,8 @@ class MUCBot(slixmpp.ClientXMPP): Automatically assigned to the "help" command.""" help_cmd = ('Type {}help '.format(self.prefix) + - ' to get more info about that specific command.\n\n'+ - 'SRC: http://git.kaliko.me/sid.git') + ' to get more info about that specific command.\n\n' + + f'SRC: {__url__}') if not args: if self.__doc__: description = self.__doc__.strip() -- 2.39.2