From ee38f3ae1e801fd160978b2c5804d4cc056683f6 Mon Sep 17 00:00:00 2001 From: kaliko Date: Sat, 15 Nov 2014 11:46:09 +0100 Subject: [PATCH] Use of getpass in example bot --- bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bot.py b/bot.py index 35ac4a5..e02d96f 100644 --- a/bot.py +++ b/bot.py @@ -1,13 +1,15 @@ #!/usr/bin/env python3 # -*- coding: utf-8 -*- +import getpass + from sid.sid import MUCBot from sid.echo import Echo from sid.feeds import Feeds JID = 'bot@example.org' NICK = 'sid' -PASS = '53cr34' +PASS = getpass.getpass('Password: ') ROOM = 'room@conf.example.org' def main(): -- 2.39.5