From 2dfb816ddadb34e5b11676ef18c3c2f9079c8146 Mon Sep 17 00:00:00 2001 From: lassulus Date: Tue, 18 Sep 2018 19:01:36 +0200 Subject: throw away dead code --- titlebot/commands/new | 19 ------------------- 1 file changed, 19 deletions(-) delete mode 100755 titlebot/commands/new (limited to 'titlebot/commands/new') diff --git a/titlebot/commands/new b/titlebot/commands/new deleted file mode 100755 index 7246a2b..0000000 --- a/titlebot/commands/new +++ /dev/null @@ -1,19 +0,0 @@ -#!/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.load_db(f) - -suggester = environ['_from'] -if not poll.title_in_db(title,db): - db.append( { 'by': suggester, - 'votes':{},'title': title}) - print("Thank you for your suggestion '%s'!"%environ["_from"]) - print("To vote type '.up %d'"%(len(db)-1)) -poll.save_db(f,db) -- cgit v1.2.3