From 2f3e887c83ea172f0f4195378f149659d6379974 Mon Sep 17 00:00:00 2001 From: polymath Date: Sun, 6 Oct 2024 21:10:51 +0200 Subject: [PATCH] Adding welcome functionality to the users who join a public room ! --- kaikout/__main__.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/kaikout/__main__.py b/kaikout/__main__.py index 9534e5e..5d258c9 100644 --- a/kaikout/__main__.py +++ b/kaikout/__main__.py @@ -11,6 +11,7 @@ from kaikout.utilities import Config from kaikout.xmpp.client import XmppClient from getpass import getpass from argparse import ArgumentParser +from erdhe import integrate_with_kaikout # Add this import import logging # import os # import slixmpp @@ -56,5 +57,11 @@ def main(): port = account_xmpp['client']['port'] if 'port' in account_xmpp['client'] else None XmppClient(jid, password, hostname, port, alias) + # Create the XMPP client + xmpp_client = XmppClient(jid, password, hostname, port, alias) + + # Integrate the welcome whisper feature + welcomer = integrate_with_kaikout(xmpp_client) + if __name__ == '__main__': - main() + main() \ No newline at end of file