--- /dev/null
+Copyright (c) 2014, John Runyon and Conny Sjoblom
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
#!/usr/bin/python
+# -*- coding: latin-1 -*-
# Erebus IRC bot - Author: John Runyon
# "Bot" and "BotConnection" classes (handling a specific "arm")
#TODO: rewrite send() to queue
def send(self, line):
- print self.parent.nick, '[O]', line
+ print self.parent.nick, '[O]', str(line)
self.write(line)
def write(self, line):
#!/usr/bin/python
+# -*- coding: latin-1 -*-
# Erebus IRC bot - Author: John Runyon
# main startup code
# module code
import sys
-
@lib.hook('eval', needchan=False, glevel=lib.MANAGER)
@lib.argsGE(1)
def cmd_eval(bot, user, chan, realtarget, *args):
modstop = lib.modstop
# module code
-import ctlmod
-
@lib.hook('test')
def cmd_test(bot, user, chan, realtarget, *args):
bot.msg(chan, "You said: !test %s" % (' '.join([str(arg) for arg in args])))
-# Erebus IRC bot - Author: John Runyon
+# Erebus IRC bot - Author: Conny Sjoblom
# Spotify URL Checker
# This file is released into the public domain; see http://unlicense.org/
# module info
modinfo = {
- 'author': 'Conny Sjoblom (BiohZn)',
+ 'author': 'Conny Sjoblom',
'license': 'public domain',
'compatible': [1], # compatible module API versions
'depends': [], # other modules required to work properly?
# module code
import re
-import ctlmod
import urllib2
from BeautifulSoup import BeautifulSoup
# Erebus IRC bot - Author: John Runyon
# Startup script
-python -B "$(dirname $(readlink -f $0))/erebus.py"
+cd "$(dirname $(readlink -f $0))"
+PYTHONPATH=".:$PYTHONPATH" python -B erebus.py
--- /dev/null
+import sys
+sys.setdefaultencoding('utf-8')