
Untitled
By: a guest on
May 10th, 2012 | syntax:
None | size: 0.44 KB | hits: 16 | expires: Never
#!/usr/bin/python2
import reddit
import sys
useragent = "hintssbot"
username = "hintssbot"
password = "<redacted>"
botowner = "hintss"
print "starting up..."
r = reddit.Reddit(user_agent=useragent)
print "logging in..."
r.login(username, password)
name = sys.argv[1]
print "creating subreddit..."
r.create_subreddit(name=name, title=name, description=name)
print "subreddit:"
print name
print "created!"
print "done"