Tweaks, improved reddit
This commit is contained in:
parent
7265413a21
commit
b4d7e200a3
3 changed files with 82 additions and 80 deletions
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"templates":[
|
||||
"templates": [
|
||||
"rips off {user}'s {limbs} and leaves them to die.",
|
||||
"grabs {user}'s head and rips it clean off their body.",
|
||||
"grabs a {gun} and riddles {user}'s body with bullets.",
|
||||
|
@ -24,7 +24,7 @@
|
|||
"feeds {user} coke and mentos till they violently explode."
|
||||
],
|
||||
"parts": {
|
||||
"gun":[
|
||||
"gun": [
|
||||
"AK47",
|
||||
"machine gun",
|
||||
"automatic pistol",
|
||||
|
|
|
@ -1,9 +1,11 @@
|
|||
from util import hook, http, text, timesince
|
||||
from datetime import datetime
|
||||
import re
|
||||
import random
|
||||
|
||||
reddit_re = (r'.*((www\.)?reddit\.com/r[^ ]+)', re.I)
|
||||
from util import hook, http, text, timesince
|
||||
|
||||
|
||||
reddit_re = (r'.*(((www\.)?reddit\.com/r|redd\.it)[^ ]+)', re.I)
|
||||
|
||||
base_url = "http://reddit.com/r/{}/.json"
|
||||
short_url = "http://redd.it/{}"
|
||||
|
|
Reference in a new issue