mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 14:10:41 +01:00
Updated to use generic command name and to require privilege for licensekey.
This commit is contained in:
parent
aee6579dc1
commit
e767feb20b
@ -62,8 +62,8 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
<jemfinch> @list Amazon
|
<jemfinch> @list Amazon
|
||||||
<supybot> amazonlicensekey, isbn
|
<supybot> licensekey, isbn
|
||||||
<jemfinch> (amazonlicense key is used to set the license key to access Amazon's web services. We won't show that here, for obvious reasons.)
|
<jemfinch> (licensekey is used to set the license key to access Amazon's web services. We won't show that here, for obvious reasons.)
|
||||||
<jemfinch> @isbn 0-8050-3906-6
|
<jemfinch> @isbn 0-8050-3906-6
|
||||||
<supybot> "Winning With the French (Openings)", written by Wolfgang Uhlmann; published by Henry Holt & Company, Inc..
|
<supybot> "Winning With the French (Openings)", written by Wolfgang Uhlmann; published by Henry Holt & Company, Inc..
|
||||||
<jemfinch> @isbn 0805039066
|
<jemfinch> @isbn 0805039066
|
||||||
@ -72,7 +72,7 @@ example = utils.wrapLines("""
|
|||||||
|
|
||||||
class Amazon(callbacks.Privmsg):
|
class Amazon(callbacks.Privmsg):
|
||||||
threaded = True
|
threaded = True
|
||||||
def amazonlicensekey(self, irc, msg, args):
|
def licensekey(self, irc, msg, args):
|
||||||
"""<key>
|
"""<key>
|
||||||
|
|
||||||
Sets the license key for using Amazon Web Services. Must be set before
|
Sets the license key for using Amazon Web Services. Must be set before
|
||||||
@ -81,6 +81,7 @@ class Amazon(callbacks.Privmsg):
|
|||||||
key = privmsgs.getArgs(args)
|
key = privmsgs.getArgs(args)
|
||||||
amazon.setLicense(key)
|
amazon.setLicense(key)
|
||||||
irc.reply(msg, conf.replySuccess)
|
irc.reply(msg, conf.replySuccess)
|
||||||
|
licensekey = privmsgs.checkCapability(licensekey, 'admin')
|
||||||
|
|
||||||
def isbn(self, irc, msg, args):
|
def isbn(self, irc, msg, args):
|
||||||
"""<isbn>
|
"""<isbn>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user