aboutsummaryrefslogtreecommitdiffstats
path: root/titlebot/commands/new
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2018-09-18 19:01:36 +0200
committerlassulus <lassulus@lassul.us>2018-09-18 19:01:36 +0200
commit2dfb816ddadb34e5b11676ef18c3c2f9079c8146 (patch)
tree59658869371ec5ac11fcd749cf270e1be655d1f5 /titlebot/commands/new
parent00b26ca0bb45d0fb7989a3ddf506bd8230363a14 (diff)
throw away dead code
Diffstat (limited to 'titlebot/commands/new')
-rwxr-xr-xtitlebot/commands/new19
1 files changed, 0 insertions, 19 deletions
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)