Skip to content
Snippets Groups Projects
Commit 27655214 authored by Gianluca OBERREIT's avatar Gianluca OBERREIT
Browse files

Add rowing committtee

parent 2cefedfe
No related branches found
No related tags found
No related merge requests found
...@@ -5,13 +5,20 @@ ...@@ -5,13 +5,20 @@
"Joe": {"role": "Prez", "message": "Hello"}, "Joe": {"role": "Prez", "message": "Hello"},
"Jack": {"role": "VP", "message": "Hullo"}, "Jack": {"role": "VP", "message": "Hullo"},
"Jimmy Bill Bob": {"role": "Trez", "message": "Gimme your money"} "Jimmy Bill Bob": {"role": "Trez", "message": "Gimme your money"}
},
"messages": {
"intro": ["Hullo, how are you? use /event to view events, /sub to subscribe and /exit to exit."]
} }
}, },
".9 Bar": { ".9 Bar": {
"command": "/bar" "command": "/bar"
}, },
"BX/B-": { "BX/B-": {
"command": "/rowing" "command": "/rowing",
"board": {
"Gianluca": {"role": "Prez"},
"Aditya": {"role": "VP"}
}
}, },
"PhysiX": { "PhysiX": {
"command": "/physix" "command": "/physix"
......
...@@ -155,7 +155,7 @@ def main() -> None: ...@@ -155,7 +155,7 @@ def main() -> None:
filters.Regex(re.compile(r'nay', re.IGNORECASE)), nomore filters.Regex(re.compile(r'nay', re.IGNORECASE)), nomore
) )
], ],
COMMITTEES: [committee.handler for committee in Committees.committees] COMMITTEES: Committees.committees
}, },
fallbacks=[MessageHandler(filters.TEXT, predetermined)], fallbacks=[MessageHandler(filters.TEXT, predetermined)],
) )
......
from .bar import Bar from .bar import Bar
from .physiX import Physix from .physiX import Physix
from .example import Example from .example import Example
from .rowing import Rowing
_temp = [Bar, Physix, Example] _temp = [Bar, Physix, Example, Rowing]
committees = [ob() for ob in _temp] committees = [ob().handler for ob in _temp]
from Committees import base
class Rowing(base.Committee):
def __init__(self):
super().__init__("BX/B-")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment