X-Git-Url: https://git.kaliko.me/?p=sid.git;a=blobdiff_plain;f=README.rst;h=3bd1ca5bf62c86a276f5b8d2dae3e495f9e75925;hp=1449a963eb5cca35dba863d80ca89a048cb3c3ab;hb=3f5348e974172a05fc4710b7f3d05963b407627e;hpb=b11971d184420bc764aa767664c1239e03c9ba25 diff --git a/README.rst b/README.rst index 1449a96..3bd1ca5 100644 --- a/README.rst +++ b/README.rst @@ -7,8 +7,9 @@ Getting sid Currently unreleased, only a development version is available. -* http: https://kaliko.me/sid/ -* git: http://git.kaliko.me/?p=sid.git +* doc: https://kaliko.gitlab.io/sid/ +* git: https://gitlab.com/kaliko/sid.git +* issue: https://gitlab.com/kaliko/sid/-/issues Get the source with git:: @@ -29,11 +30,14 @@ Here is a plain example:: JID = 'bot@example.org' NICK = 'sid' - PASS = getpass.getpass('Password for "{}": '.format(JID)) + PASS = getpass.getpass(f'Password for "{JID}": ') ROOM = 'room@conf.example.org' + # Instanciate the bot xmpp = MUCBot(JID, PASS, ROOM, NICK) + # Register a plugin xmpp.register_bot_plugin(Ping) + # Connect to the XMPP server and start processing XMPP stanzas. try: xmpp.connect()