Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a simple chatbot for our IRC channel #62

Closed
wants to merge 5 commits into from
Closed
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "include/redbot"]
path = include/redbot
url = https://github.com/mrhmouse/redbot.git
1 change: 1 addition & 0 deletions include/redbot
Submodule redbot added at 414734
5 changes: 5 additions & 0 deletions src/redbot.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env coffee

path = require 'path'
Bot = require path.join __dirname, '..', 'include', 'redbot', 'bot.coffee'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice to take the path relative to RED_SPIDER_ROOT for more robustness and less wheel-reinventing.

Even better would be to have setup.py (optionally?) copy the contents of include/redbot to lib/redbot (because it's a runtime dependency) and then have rsshell add lib to whatever environment variable Coffeescript uses to find libraries, so you can just require path.join redbot, bot.coffee here.

ruddy = new Bot 'ruddy', '#redspider'