From 2aa4691bf95bdb98a1ed38564424cef33991a511 Mon Sep 17 00:00:00 2001 From: Someone Date: Thu, 6 Jan 2022 23:57:23 +0100 Subject: [PATCH] core/CoreCommandUse.py --- core/CoreCommandUse.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/CoreCommandUse.py b/core/CoreCommandUse.py index 90e4187..800a53f 100644 --- a/core/CoreCommandUse.py +++ b/core/CoreCommandUse.py @@ -10,7 +10,7 @@ from AbstractCommand import AbstractCommand class CoreCommandUse(AbstractCommand): TRIGGER = "use" CONFIG = {"display_name": "somebot-command", "auto_complete": True, - "auto_complete_hint": "[]", + "auto_complete_hint": "[] 📢", } CONFIG["auto_complete_desc"] = CONFIG["description"] = "Display a hint (how) to use a feature." USEINFO = cleandoc(""" @@ -51,14 +51,14 @@ class CoreCommandUse(AbstractCommand): if topic == "debug": import pprint pprint.pprint(self.bot.USETOPICS) - request.cmd_respond_text_chan("Debug info dumped to stdout.") + request.respond_cmd_chan("Debug info dumped to stdout.") elif topic == "": msg = "``\n+ ``/use ".join([t for t in sorted(self.bot.USETOPICS.keys())]) - request.cmd_respond_text_chan("#### ``Did you know...``\nYou can use ``/use `` to display a helpful message about a feature of this instance. Known topics are:\n+ ``/use "+msg+"``") + request.respond_cmd_chan("#### ``Did you know...``\nYou can use ``/use `` to display a helpful message about a feature of this instance. Known topics are:\n+ ``/use "+msg+"``") elif topic not in self.bot.USETOPICS: - request.cmd_respond_text_chan("#### Did you know that this bot doesnt know anything about: ``"+topic+"``?\nIf this is important, contact @someone") + request.respond_cmd_chan("#### Did you know that this bot doesnt know anything about: ``"+topic+"``?\nIf this is important, contact @someone") else: - request.cmd_respond_text_chan("#### ``Did you know...``\n"+self.bot.USETOPICS[topic]+"\n``/use "+topic+"``") + request.respond_cmd_chan("#### ``Did you know...``\n"+self.bot.USETOPICS[topic]+"\n``/use "+topic+"``") -- 2.43.0