From 2b10e99265f816f34e8530bac6b88a4ebf05b7f7 Mon Sep 17 00:00:00 2001 From: Roman Gräf Date: Sat, 5 Sep 2020 23:19:39 +0200 Subject: Initial commit --- bot/_bs/tasks.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 bot/_bs/tasks.py (limited to 'bot/_bs/tasks.py') diff --git a/bot/_bs/tasks.py b/bot/_bs/tasks.py new file mode 100644 index 0000000..29c3883 --- /dev/null +++ b/bot/_bs/tasks.py @@ -0,0 +1,10 @@ +from functools import partial + +tasks = {} + + +def task(name: str): + return partial(tasks.__setitem__, name) + + +__all__ = ['task'] -- cgit