]> kaliko git repositories - sid.git/commitdiff
Use __url__ in help message
authorkaliko <kaliko@azylum.org>
Wed, 6 May 2020 09:17:51 +0000 (11:17 +0200)
committerkaliko <kaliko@azylum.org>
Wed, 6 May 2020 09:17:51 +0000 (11:17 +0200)
sid/sid.py

index f475bd4f9224cdbe9e9739c00c5519cf1491389b..b9c7df71c55373cfaa989f8ef5582a576ab9fa4d 100644 (file)
@@ -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 <command name>'.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()