summaryrefslogtreecommitdiffstats
path: root/Reaktor/titlebot/commands/clear
diff options
context:
space:
mode:
Diffstat (limited to 'Reaktor/titlebot/commands/clear')
-rwxr-xr-xReaktor/titlebot/commands/clear12
1 files changed, 12 insertions, 0 deletions
diff --git a/Reaktor/titlebot/commands/clear b/Reaktor/titlebot/commands/clear
new file mode 100755
index 00000000..e3558194
--- /dev/null
+++ b/Reaktor/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")