aboutsummaryrefslogtreecommitdiffstats
path: root/titlebot/commands/new
diff options
context:
space:
mode:
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)