changed help a to mach other plugins, added help to vimeo

This commit is contained in:
neersighted 2012-02-28 08:36:12 +08:00 committed by lukeroge
parent 1af7998666
commit be1a5777f5
4 changed files with 5 additions and 4 deletions

View file

@ -83,7 +83,7 @@ def valueadd(bot, input, func, kind, args):
@hook.command
def mode(inp, input=None, db=None):
".mode - Set modes on various things"
".mode -- Set modes on various things"
if input.nick not in input.bot.config["admins"]:
input.notice("Only bot admins can use this command!")
return

View file

@ -8,7 +8,7 @@ def lastfm(inp, nick='', say=None, db=None, bot=None):
user = inp
else:
user = nick
".lastfm <user> - display the now playing (or recent) tracks of a LastFM user"
".lastfm <user> -- displays the now playing (or recent) tracks of a LastFM user"
db.execute("create table if not exists lastfm(nick primary key, acc)")
sql = db.execute("select acc from lastfm where nick=lower(?)", (nick,)).fetchone();
api_url = "http://ws.audioscrobbler.com/2.0/?format=json"

View file

@ -19,7 +19,7 @@ def mutesieve(bot, input, func, kind, args):
def mute(inp, input=None, db=None, bot=None, users=None):
if inp and inp in input.conn.users.channels.keys():
input.chan = inp
".mute <channel> - Mutes the bot"
".mute <channel> -- Mutes the bot"
if usertracking.query(db, bot.config, input.nick, input.chan, "mute") or "o" in users[input.chan].usermodes[input.nick]:
users[input.chan].mute = "%s %d" % (input.nick, time.time())
input.notice("Muted")
@ -30,7 +30,7 @@ def mute(inp, input=None, db=None, bot=None, users=None):
def unmute(inp, input=None, db=None, bot=None, users=None):
if inp and inp in users.channels.keys():
input.chan = inp
".unmute <channel> - Unmutes the bot"
".unmute <channel> -- Unmutes the bot"
if usertracking.query(db, bot.config, input.nick, input.chan, "mute") or "o" in users[input.chan].usermodes[input.nick]:
if hasattr(users[input.chan], "mute"):
input.notice("Unmuted")

View file

@ -3,6 +3,7 @@ from util import hook, http
@hook.regex(r'vimeo.com/([0-9]+)')
def vimeo_url(match):
".vimeo <url> -- returns information on the Vimeo video at <url>"
info = http.get_json('http://vimeo.com/api/v2/video/%s.json'
% match.group(1))