def send_help(self, plugin_name=None):
if not plugin_name:
- msg = "Known commands/reactions:\n" # + ", ".join(self.plugin_storage.keys())
- for plugin, definition in self.plugin_storage.items():
- msg += ("{}: \n"
- "Description:\t{}\n"
- "Usage:\t{}\n"
- "Bindings:\t{}\n\n").format(
- plugin,
- definition["description"],
- definition["usage"],
- definition["bindings"]
- )
+ msg = "Known commands/reactions:\n" + ", ".join(self.plugin_storage.keys())
else:
definition = self.plugin_storage[plugin_name]
- msg = "Usage: {}\n".format(definition["usage"])
+ msg = ("{}: \n"
+ "Description:\t{}\n"
+ "Usage:\t{}\n\n").format(
+ plugin_name,
+ definition["description"],
+ definition["usage"]
+ )
return Action(msg=msg)