Exemplo n.º 1
0
 def cmd_suggest(self, user, channel, params):
     """Use google spell suggestion service to suggest a spelling. Usage: SUGGEST <word>"""
     if len(params) == 1:
         s = GoogleSearch(self.options.proxy, self.options.key)
         result = s.spell(params[0])
         self.msg(user, 'Suggestion(s): %s' % (result, ))
     else:
         self.msg(user, 'ERROR: No Parameters Given')