aboutsummaryrefslogtreecommitdiff
path: root/util.py
diff options
context:
space:
mode:
authorromangraef <roman.graef@gmail.com>2018-03-17 22:11:47 +0100
committerromangraef <roman.graef@gmail.com>2018-03-17 22:11:47 +0100
commit50afa23b9dc26f914522a55fe5cbb893d34ad27c (patch)
tree9711c076e4af283523f51fbd72ceb67bde4f5366 /util.py
parent473d84ec2c82932fa1c09e4b96d6e8198bbb71df (diff)
downloadtelegramuserbot-50afa23b9dc26f914522a55fe5cbb893d34ad27c.tar.gz
telegramuserbot-50afa23b9dc26f914522a55fe5cbb893d34ad27c.tar.bz2
telegramuserbot-50afa23b9dc26f914522a55fe5cbb893d34ad27c.zip
added todos as well as regex based command triggers.HEADmaster
Diffstat (limited to 'util.py')
-rw-r--r--util.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/util.py b/util.py
new file mode 100644
index 0000000..0886bf9
--- /dev/null
+++ b/util.py
@@ -0,0 +1,11 @@
+
+def property_decorator(key):
+ def decorator(value):
+ def wrapper(func):
+ setattr(func, key, value)
+ return func
+
+ return wrapper
+
+ return decorator
+