示例#1
0
文件: pomf.py 项目: Gosha/uguubot
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)
示例#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)]))
示例#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)
示例#4
0
文件: pomf.py 项目: nojusr/Taigabot
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)]))