Skip to content
Helpful irc bot.
Python
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
gudguy Fixes for the new Giphy API
.gitignore Woops delete pyc files
README.md Update readme
TODO.txt Fixes for the new Giphy API
requirements.txt Commit all the things
run.py usr/bin/env python

README.md

GudGuy

My IRC bot built with irctk that sits in #tech@nyu on irc.freenode.net and searches the internets for the gud stuff. Currently searches Giphy, SoundCloud, and YouTube.

  • How to add a bot command:

    from gudguy import bot
    
    @bot.command('mc')  # shortcut
    @bot.command
    def my_command(context):
        command = context.args  # the command that was issued
        return 'Hi.'
    
  • Then in gudguy/__init__.py make sure the module your command was defined in is imported.

  • All commands must be prefixed with ., i.e. .youtube

Commands:

  • .g, .giphy searches Giphy. You can add random to your query to pull a random gif.
  • .sc, .soundcloud_track searches SoundCloud for tracks.
  • .yt, .youtube searches YouTube.
Something went wrong with that request. Please try again.