diff --git a/slixfeed/action.py b/slixfeed/action.py index 8a5416e..915b4db 100644 --- a/slixfeed/action.py +++ b/slixfeed/action.py @@ -1190,6 +1190,7 @@ async def view_entry(url, num): return response +# TODO get all active feeds of active accounts and scan the feed with the earliest scanned time # TODO Rename function name (idea: scan_and_populate) async def scan(self, jid_bare, db_file, url): """ diff --git a/slixfeed/assets/commands.toml b/slixfeed/assets/commands.toml index f7a5749..208169b 100644 --- a/slixfeed/assets/commands.toml +++ b/slixfeed/assets/commands.toml @@ -203,6 +203,12 @@ stop Disable bot and stop updates. """ +[options] +options = """ +options +List options. +""" + [preview] read = """ read diff --git a/slixfeed/version.py b/slixfeed/version.py index f5f6007..4da4703 100644 --- a/slixfeed/version.py +++ b/slixfeed/version.py @@ -1,2 +1,2 @@ -__version__ = '0.1.35' -__version_info__ = (0, 1, 35) +__version__ = '0.1.36' +__version_info__ = (0, 1, 36) diff --git a/slixfeed/xmpp/client.py b/slixfeed/xmpp/client.py index 9ae511f..1095960 100644 --- a/slixfeed/xmpp/client.py +++ b/slixfeed/xmpp/client.py @@ -2126,7 +2126,6 @@ class Slixfeed(slixmpp.ClientXMPP): e_key = e_key.capitalize() # form.add_field(ftype='fixed', # value=e_val) - print(type(e_val)) if e_key == 'Name': form.add_field(ftype='fixed', value=e_val) diff --git a/slixfeed/xmpp/process.py b/slixfeed/xmpp/process.py index 0709067..45d0d0e 100644 --- a/slixfeed/xmpp/process.py +++ b/slixfeed/xmpp/process.py @@ -829,6 +829,19 @@ async def message(self, message): db_file, key, val) response = 'All items of newly added feeds be delivered.' XmppMessage.send_reply(self, message, response) + case 'options': + response = 'Options:\n```' + for key in self.settings[jid_bare]: + val = self.settings[jid_bare][key] or self.settings['default'][key] + # val = Config.get_setting_value(self.settings, jid_bare, key) + steps = 11 - len(key) + pulse = '' + for step in range(steps): + pulse += ' ' + response += '\n' + key + pulse + ': ' + str(val) + print(response) + response += '\n```' + XmppMessage.send_reply(self, message, response) case _ if message_lowercase.startswith('quantum'): key = message_text[:7] val = message_text[8:]