Exemple #1
0
def on_add(conn, fullhost, nick, ident, hostname, command, target, filename):
    if '%s@%s' % (ident, hostname) in sys.argv[3:]:
        parseQuestions.parseQuestions(filename)
        getCategories()
        conn.send('%s %s :Adding questions from file: %s' % (command, target, filename))
    else:
        conn.send('%s %s :No.' % (command, target))
Exemple #2
0
#!/usr/bin/python

import parseQuestions


if __name__ == '__main__':
    x = parseQuestions.parseQuestions('http://dl.dropbox.com/u/37233567/test.txt')