From e5c3058a64ae6e27d2bd323a18f02c26df1cdfdf Mon Sep 17 00:00:00 2001 From: schneefux Date: Sat, 24 May 2014 18:34:54 -0700 Subject: dynamic module loading with priorities --- client/modules/HN.py | 2 ++ client/modules/News.py | 2 ++ client/modules/Unclear.py | 3 +++ 3 files changed, 7 insertions(+) (limited to 'client/modules') diff --git a/client/modules/HN.py b/client/modules/HN.py index 692abea..493fa1d 100644 --- a/client/modules/HN.py +++ b/client/modules/HN.py @@ -7,6 +7,8 @@ from semantic.numbers import NumberService WORDS = ["HACKER", "NEWS", "YES", "NO", "FIRST", "SECOND", "THIRD"] +PRIORITY = 4 + URL = 'http://news.ycombinator.com' diff --git a/client/modules/News.py b/client/modules/News.py index 0cedd3a..59495a3 100644 --- a/client/modules/News.py +++ b/client/modules/News.py @@ -5,6 +5,8 @@ from semantic.numbers import NumberService WORDS = ["NEWS", "YES", "NO", "FIRST", "SECOND", "THIRD"] +PRIORITY = 3 + URL = 'http://news.ycombinator.com' diff --git a/client/modules/Unclear.py b/client/modules/Unclear.py index 39f56d0..23ab2ed 100644 --- a/client/modules/Unclear.py +++ b/client/modules/Unclear.py @@ -1,7 +1,10 @@ +from sys import maxint import random WORDS = [] +PRIORITY = -(maxint + 1) + def handle(text, mic, profile): """ -- cgit v1.3.1