@commands(u'suggest')
def suggest(bot, trigger):
 if (not trigger.group(2)):
  return bot.reply(u'No query term.')
 query = trigger.group(2)
 uri = u'http://websitedev.de/temp-bin/suggest.pl?q='
 answer = web.get((uri + query.replace(u'+', u'%2B')))
 if answer:
  bot.say(answer)
 else:
  bot.reply(u'Sorry, no result.')

@ commands ( u'suggest' ) def suggest ( bot , trigger ) : if ( not trigger . group ( 2 ) ) : return bot . reply ( u'No query term.' ) query = trigger . group ( 2 ) uri = u'http://websitedev.de/temp-bin/suggest.pl?q=' answer = web . get ( ( uri + query . replace ( u'+' , u'%2B' ) ) ) if answer : bot . say ( answer ) else : bot . reply ( u'Sorry, no result.' )
processes translation suggestions and stores them in the database .