forked from sch/KaikOut
Adding welcome functionality to the users who join a public room !
This commit is contained in:
parent
561d36133f
commit
2f3e887c83
1 changed files with 8 additions and 1 deletions
|
@ -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()
|
Loading…
Reference in a new issue