From 4ac8d44364e72dcc618b672889164eb07eeb40b5 Mon Sep 17 00:00:00 2001 From: kaliko Date: Wed, 13 May 2020 20:03:26 +0200 Subject: [PATCH] Remove duplicated example --- bot.py | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 bot.py diff --git a/bot.py b/bot.py deleted file mode 100644 index 1722fcd..0000000 --- a/bot.py +++ /dev/null @@ -1,32 +0,0 @@ -#!/usr/bin/env python3 -# -*- coding: utf-8 -*- - -import getpass - -from sid.sid import MUCBot -from sid.ping import Ping -from sid.feeds import Feeds - -JID = 'bot@example.org' -NICK = 'sid' -PASS = getpass.getpass(f'Password for "{JID}": ') -ROOM = 'room@conf.example.org' - -def main(): - Feeds.TEMPO = 60 - xmpp = MUCBot(JID, PASS, ROOM, NICK) - xmpp.register_bot_plugin(Feeds) - xmpp.register_bot_plugin(Ping) - try: - xmpp.connect() - xmpp.process() - except KeyboardInterrupt: - xmpp.shutdown_plugins() - xmpp.log.info('Done') - -# Script starts here -if __name__ == '__main__': - main() - -# VIM MODLINE -# vim: ai ts=4 sw=4 sts=4 expandtab -- 2.39.5