1
0
Fork 0
forked from sch/KaikOut

Adding welcome functionality to the users who join a public room !

This commit is contained in:
polymath 2024-10-06 21:10:51 +02:00
parent 561d36133f
commit 2f3e887c83

View file

@ -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()