From: kaliko Date: Wed, 6 May 2020 09:17:51 +0000 (+0200) Subject: Use __url__ in help message X-Git-Tag: 0.1.0~16 X-Git-Url: https://git.kaliko.me/?a=commitdiff_plain;h=a19f40b0a9329c7f3c3cf56d7deb5a4bc1ef32ff;p=sid.git Use __url__ in help message --- 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()