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 kaikout.xmpp.client import XmppClient
|
||||||
from getpass import getpass
|
from getpass import getpass
|
||||||
from argparse import ArgumentParser
|
from argparse import ArgumentParser
|
||||||
|
from erdhe import integrate_with_kaikout # Add this import
|
||||||
import logging
|
import logging
|
||||||
# import os
|
# import os
|
||||||
# import slixmpp
|
# import slixmpp
|
||||||
|
@ -56,5 +57,11 @@ def main():
|
||||||
port = account_xmpp['client']['port'] if 'port' in account_xmpp['client'] else None
|
port = account_xmpp['client']['port'] if 'port' in account_xmpp['client'] else None
|
||||||
XmppClient(jid, password, hostname, port, alias)
|
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__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
Loading…
Reference in a new issue