Add info to disable automsc linking

This commit is contained in:
Nexus 2024-09-20 02:03:44 +01:00
parent c89e39ee83
commit eb1f4b69e4

View file

@ -124,8 +124,10 @@ class MSCGetter(niobot.Module):
continue continue
lines.append(f"[{data['title']}]({data['html_url']})") lines.append(f"[{data['title']}]({data['html_url']})")
if lines: if lines:
text = "\n".join((f"* {ln}" for ln in lines))
text += "\n\n<h6>To disable automatic MSC linking, please run `h!automsc disable`.</h6>"
return await self.bot.send_message( return await self.bot.send_message(
room, "\n".join((f"* {ln}" for ln in lines)), reply_to=message room, text, reply_to=message
) )
@staticmethod @staticmethod