Helpful irc bot.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gudguy
.gitignore
README.md
TODO.txt
requirements.txt
run.py

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.