From 7c183e092d83d61e72faceabd01772aee65fcfb7 Mon Sep 17 00:00:00 2001 From: Thorsten S Date: Thu, 9 Feb 2023 21:31:49 +0100 Subject: [PATCH] add nick to info --- distbot/plugins/meta.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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')) -- 2.39.2