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)
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)]))
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)]))