Ganon11 / WorfBot2

An extensible (via commands) IRC Bot written in Python
GNU General Public License v3.0
0 stars 2 forks source link

xkcd command #9

Closed krruzic closed 10 years ago

krruzic commented 10 years ago

I also included the database up to the current comic, so it won't have to do an initial run. The file is pretty small.

Ganon11 commented 10 years ago

I feel like this is still weird, but this might be due more to GitHub's pull request stuff and not your fault. Your pull request adds back twitter.py and has a bunch of diff-created jump in files like help.py and about.py. I think it's because your branch includes some of my commits to the master branch.

Is your branch a branch from my "master"? Or a branch from my "WorfBot"?

Ganon11 commented 10 years ago

Also, if you want to test the xkcd command, you can add the following:

if __name__ == "__main__":
  comp = {}
  comp['arguments'] = "!xkcd <command to debug here>"
  print xkcd(comp)

and run the script from the IRC-Bot\src directory.

Or you can be mega fancy and use sys.argv to test it with whatever.