Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jjmalina committed Mar 18, 2013
1 parent ae0efa9 commit cdde7cd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ Currently searches [Giphy](http://giphy.com), [SoundCloud](http://soundcloud.com
return 'Hi.'

* Then in `gudguy/__init__.py` make sure the module your command was defined in is imported.
* All command must be prefixed with `.`, i.e. `.youtube`
* All commands must be prefixed with `.`, i.e. `.youtube`

Commands:
* `.g`, `.giphy` searches [Giphy](http://giphy.com). You can add `random` to your query to pull a random gif.
* `.sc`, `.soundcloud_track` searches [SoundCloud](http://soundcloud.com) for tracks.
* `.yt`, `.youtube` searches [YouTube](http://youtube.com).
2 changes: 1 addition & 1 deletion gudguy/youtube.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

@bot.command('yt')
@bot.command
def youtube_search(context):
def youtube(context):
res = requests.get(search_api_url, params={'q': context.args})
if not res.status_code == 200:
return 'Error making request'
Expand Down

0 comments on commit cdde7cd

Please sign in to comment.