aboutsummaryrefslogtreecommitdiffstats
path: root/titlebot/commands/clear
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2014-04-25 12:06:50 +0200
committermakefu <github@syntax-fehler.de>2014-04-25 12:06:50 +0200
commitd7bdbaaa1659289be2b07a532f98058ecba32916 (patch)
tree4edc9a3122af6aad33fe82e57805e0a9e75ba689 /titlebot/commands/clear
parent09bc409155e99b04cb2282faa01548a40a2c135a (diff)
add titlebot Reaktor configuration
Diffstat (limited to 'titlebot/commands/clear')
-rwxr-xr-xtitlebot/commands/clear12
1 files changed, 12 insertions, 0 deletions
diff --git a/titlebot/commands/clear b/titlebot/commands/clear
new file mode 100755
index 0000000..e355819
--- /dev/null
+++ b/titlebot/commands/clear
@@ -0,0 +1,12 @@
+#!/usr/bin/env python3
+import json
+from os import environ
+import sys
+import os
+# krebs polling
+import poll
+
+f = 'suggestions.json'
+title=" ".join(sys.argv[1:])
+db = poll.save_db(f,[])
+print("cleared database")