We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f933dc + 8b23f94 commit 55333d8Copy full SHA for 55333d8
1 file changed
plugins/factoids.py
@@ -181,3 +181,12 @@ def listfactoids(notice, chan):
181
reply_text.append(word)
182
reply_text_length += added_length
183
notice(", ".join(reply_text))
184
+
185
186
+@hook.command("listdetailedfacts", autohelp=False)
187
+def listdetailedfactoids(chan):
188
+ """- lists all available factoids with their respective data"""
189
+ headers = ("Command", "Output")
190
+ data = [(fact[0], fact[1]) for fact in factoid_cache[chan].items()]
191
+ table = gen_markdown_table(headers, data).encode('UTF-8')
192
+ return web.paste(table, "md", "hastebin")
0 commit comments