diff options
author | makefu <github@syntax-fehler.de> | 2014-04-25 12:06:50 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2014-04-25 12:06:50 +0200 |
commit | 3907535dd48b94b3edd5facde0245719f04effb2 (patch) | |
tree | a25b7826c55cefe3be85f74b978bf0b9f2d19025 /Reaktor/titlebot/commands/clear | |
parent | 9afc6e2d0237ae84c084cc05492bf0f285f98851 (diff) |
add titlebot Reaktor configuration
Diffstat (limited to 'Reaktor/titlebot/commands/clear')
-rwxr-xr-x | Reaktor/titlebot/commands/clear | 12 |
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") |