From 3907535dd48b94b3edd5facde0245719f04effb2 Mon Sep 17 00:00:00 2001 From: makefu Date: Fri, 25 Apr 2014 12:06:50 +0200 Subject: add titlebot Reaktor configuration --- Reaktor/titlebot/commands/clear | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 Reaktor/titlebot/commands/clear (limited to 'Reaktor/titlebot/commands/clear') 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") -- cgit v1.2.3 [cgit] Unable to lock slot /tmp/cgit/d1200000.lock: No such file or directory (2)