From: Thorsten S Date: Thu, 9 Feb 2023 20:31:49 +0000 (+0100) Subject: add nick to info X-Git-Url: https://git.aero2k.de/?a=commitdiff_plain;h=7c183e092d83d61e72faceabd01772aee65fcfb7;p=urlbot-v3.git add nick to info --- diff --git a/distbot/plugins/meta.py b/distbot/plugins/meta.py index 5f90d64..f279679 100644 --- a/distbot/plugins/meta.py +++ b/distbot/plugins/meta.py @@ -45,11 +45,10 @@ class Info(Worker): def parse_body(self, msg): # TODO not totally true regarding task and rate limiting if "info" in self.used_channel: - return Action(msg=''': I'm a bot, my job is to extract tags from posted URLs. In case I'm annoying or for further - questions, please talk to my master %s. I'm rate limited. + return Action(msg=f""": I'm a bot named {conf_get('bot_nickname')}, my job is to extract <title> tags from posted URLs. In case I'm annoying or for further + questions, please talk to my master {conf_get('bot_owner')}. I'm rate limited. To make me exit immediately, highlight me with 'hangup' in the message - (emergency only, please). For other commands, highlight me with 'help'.''' % ( - conf_get('bot_owner'))) + (emergency only, please). For other commands, highlight me with 'help'.""") else: return Action(msg='My source code can be found at %s' % conf_get('src-url'))