Added the option to !opt-in/opt-out [onlinebot only]

Fixed command & event threading
Events are now threaded by event_type (i.e. all buddy_logon events get ran in the same one)
Added default preferences
Fixed recipe loading for multiple installs (i.e. on different machines)
This commit is contained in:
2021-08-27 13:58:47 +02:00
parent d0c8c1744c
commit c04f76c0db
24 changed files with 258 additions and 122 deletions
+4 -5
View File
@@ -35,13 +35,12 @@ class OnlineDisplay:
blob, org, priv, notify = online
postfix = []
if org > 0:
postfix.append(f"Org: {org}")
postfix.append(f"<notice>Org: {org}</notice>")
if priv > 0:
postfix.append(f"Priv: {priv}")
postfix.append(f"<highlight>Priv: {priv}</notice>")
if notify > 0:
postfix.append(f"Buddylist: {notify}")
blob = ChatBlob(title, blob)
blob.page_postfix = f" ({f', '.join(postfix)})"
postfix.append(f"<notice>Buddylist: {notify}</notice>")
blob = ChatBlob(title, blob, suffix=f" ({f', '.join(postfix)})")
return blob
def format_by_channel_main(self, query, params):