Commits

Jason R. Coombs committed eb2606e

Removed excuse command. The web service doesn't seem to be available. Fixes #15.

  • Participants
  • Parent commits a92aa04
  • Tags 1101.0

Comments (0)

Files changed (2)

File pmxbot/pmxbot.py

 	res = ' '.join('(%s: %s)' % (', '.join(n), k) for n, k in selection)
 	return res
 
-
-@command("excuse", aliases=("e ",), doc="Provide a convenient excuse")
-def excuse(client, event, channel, nick, rest):
-	args = "/".join(rest.split(' ')[:2])
-	if args:
-		args = "/" + args
-		url = 'http://www.dowski.com/excuses/new%s' % args
-	else:
-		url = 'http://www.dowski.com/excuses/new'
-	excuse = get_html(url)
-	return excuse
-
 @command("gettowork", aliases=("gtw",), doc="You really ought to, ya know...")
 def gettowork(client, event, channel, nick, rest):
 	suggestions = [u"Um, might I suggest working now",
 @contains('pmxbot', channels='unlogged', rate=.3)
 def rand_bot(client, event, channel, nick, rest):
 	normal_functions = [featurecreep, insult, motivate, compliment, cheer,
-		golfclap, excuse, nastygram, curse, bless, job, hire, oregontrail,
+		golfclap, nastygram, curse, bless, job, hire, oregontrail,
 		chain, tinytear, blame, panic, rubberstamp, dance, annoy, klingon,
 		storytime, murphy]
 	quote_functions = [quote, pq.zoidberg, pq.simpsons, pq.bender,

File tests/unit/test_commands.py

 		invalid_query = 'sp|en que no desea la nueva pregunta'
 		res = pmxbot.translate(c, e, '#test', 'testrunner', query)
 
-	@pytest.has_internet
-	def test_excuse(self):
-		pmxbot.excuse(c, e, '#test', 'testrunner', '')
-
 	def test_popquotes(self):
 		popquotes.pmxbot.install_commands()
 		res = popquotes.pmxbot.bender(c, e, '#test', 'testrunner', '')