Beispiel #1
0
def pomfremember(inp, chan=None, nick=None, say=None, db=None, notice=None):
    "pomfremember <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

    word, url = inp.split(None, 1)
    pomfurl = upload(url)
    strsave = "{} {}".format(word, pomfurl)
    notice("{} remembered as {}".format(word, pomfurl))
    hashtags.remember(strsave, nick, db)
Beispiel #2
0
def pomfremember(inp, chan=None, nick=None, say=None, db=None, adminonly=True):
	"pomfremember <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

        word, url = inp.split(None, 1)
	pomfurl = upload(url)
	strsave = "{} {}".format(word, pomfurl)
	hashtags.remember(strsave, nick, db)
	return(formatting.output('pomf', ['{} remembered as {}'.format(word, pomfurl)]))
Beispiel #3
0
def pomfremember(inp, chan=None, nick=None, say=None, db=None, notice=None):
	"pomfremember <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

        word, url = inp.split(None, 1)
	pomfurl = upload(url)
	strsave = "{} {}".format(word, pomfurl)
	notice("{} remembered as {}".format(word, pomfurl))
	hashtags.remember(strsave, nick, db)
Beispiel #4
0
def pomfremember(inp, chan=None, nick=None, say=None, db=None, adminonly=True):
    "pomfremember <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

    word, url = inp.split(None, 1)
    pomfurl = upload(url)
    strsave = "{} {}".format(word, pomfurl)
    hashtags.remember(strsave, nick, db)
    return (formatting.output('pomf',
                              ['{} remembered as {}'.format(word, pomfurl)]))