From: kaliko Date: Sat, 15 Nov 2014 10:46:09 +0000 (+0100) Subject: Use of getpass in example bot X-Git-Tag: 0.1.0~45 X-Git-Url: https://git.kaliko.me/?p=sid.git;a=commitdiff_plain;h=ee38f3ae1e801fd160978b2c5804d4cc056683f6 Use of getpass in example bot --- 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():