mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-29 21:54:22 +01:00
Removed shrink command since it's mostly unnecessary since we got the mores.
This commit is contained in:
parent
05eddc71f5
commit
1c86e6f40c
@ -47,20 +47,13 @@ def configure(onStart, afterConnect, advanced):
|
||||
|
||||
example = utils.wrapLines("""
|
||||
<jemfinch> @list Utilities
|
||||
<supybot> echo, ignore, re, repr, shrink, strconcat, strjoin, strlen, strlower, strtranslate, strupper
|
||||
<supybot> echo, ignore, re, repr, strconcat, strjoin, strlen, strlower, strtranslate, strupper
|
||||
<jemfinch> @echo foo bar baz
|
||||
<supybot> foo bar baz
|
||||
<jemfinch> @ignore foo bar baz
|
||||
<jemfinch> (he just ignores them; it's useful to run commands in sequence without caring about 'The operation succeeded' responses.)
|
||||
<jemfinch> @repr "\n"
|
||||
<supybot> "\n"
|
||||
<jemfinch> @eval 'x'*1000
|
||||
<supybot> My response would've been too long.
|
||||
<jemfinch> @shrink [eval 'x'*1000]
|
||||
<supybot> 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
|
||||
<jemfinch> (it was shrunken to 400 characters)
|
||||
<jemfinch> @strlen [shrink [eval 'x'*1000]]
|
||||
<supybot> 400
|
||||
<jemfinch> @strjoin + foo bar baz
|
||||
<supybot> foo+bar+baz
|
||||
<jemfinch> @strlower FOO BAR BAZ
|
||||
@ -81,14 +74,6 @@ class Utilities(callbacks.Privmsg):
|
||||
"""
|
||||
pass
|
||||
|
||||
def shrink(self, irc, msg, args):
|
||||
"""<text>
|
||||
|
||||
Shrinks <text> to 400 characters.
|
||||
"""
|
||||
text = privmsgs.getArgs(args)
|
||||
irc.reply(msg, text[:400])
|
||||
|
||||
def strjoin(self, irc, msg, args):
|
||||
"""<separator> <string 1> [<string> ...]
|
||||
|
||||
|
@ -36,9 +36,6 @@ class UtilitiesTestCase(PluginTestCase, PluginDocumentation):
|
||||
def testIgnore(self):
|
||||
self.assertNoResponse('ignore foo bar baz', 1)
|
||||
|
||||
def testShrink(self):
|
||||
self.assertRegexp('shrink %s' % ('x'*1000), 'x'*400)
|
||||
|
||||
def testStrjoin(self):
|
||||
self.assertResponse('strjoin + foo bar baz', 'foo+bar+baz')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user