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

    dfile, url = inp.split(None, 1)
    pomfurl = upload(url)
    strsave = "{} {}".format(dfile, pomfurl)
    notice("{} added to {}".format(pomfurl, dfile))
    datafiles.add(strsave, notice)
Esempio n. 2
0
def pomfadd(inp, chan=None, nick=None, notice=None, db=None, say=None):
	"pomfadd <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

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

        dfile, url = inp.split(None, 1)
	pomfurl = upload(url)
	strsave = "{} {}".format(dfile, pomfurl)
	notice("{} added to {}".format(pomfurl, dfile))
	datafiles.add(strsave, notice)
Esempio n. 4
0
def pomfadd(inp, chan=None, nick=None, notice=None, db=None, say=None):
    "pomfadd <word> <url> -- Downloads file, uploads it and adds it to the dictionary"

    dfile, url = inp.split(None, 1)
    pomfurl = upload(url)
    strsave = "{} {}".format(dfile, pomfurl)
    datafiles.add(strsave, notice)
    return (formatting.output('pomf',
                              ['{} remembered as {}'.format(pomfurl, dfile)]))