Skip to content

Commit

Permalink
Extended command_HELLO
Browse files Browse the repository at this point in the history
  • Loading branch information
ravench authored and raven committed Jul 25, 2015
1 parent ff9c541 commit 16de300
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion master/buildbot/status/words.py
@@ -1,3 +1,4 @@
# coding: utf-8
# This file is part of Buildbot. Buildbot is free software: you can
# redistribute it and/or modify it under the terms of the GNU General Public
# License as published by the Free Software Foundation, version 2.
Expand Down Expand Up @@ -158,6 +159,7 @@ def __init__(self, bot, user=None, channel=None):

self.user = user
self.channel = channel
self.did_say_yes = False

# silliness

Expand Down Expand Up @@ -274,7 +276,13 @@ def splitArgs(self, args):
raise UsageError(e)

def command_HELLO(self, args):
self.send("yes?")
if self.did_say_yes:
# List of 'Hi' in 100 languages. If you update this remember to also adjust master/buildbot/test/unit/test_status_words.py
greetings = ["ږغ كول ، هركلى كول ږغ، هركلى", "Goeie dag", "Tungjatjeta", "Yatasay", "Ahlan bik", "Voghdzuyin", "hola", "kaixo", "Horas", "Pryvitańnie", "Nomoskar", "Oki", "Selam", "Dez-mat", "Zdrávejte", "Mingala ba", "Hola", "Hafa dai", "Oh-see-YOH", "Nín hao", "Bonjou", "Zdravo", "Nazdar", "Hallo", "Hallo", "Iiti", "Kotáka", "Saluton", "Tere", "Hallo", "Hallo", "Bula", "Helo", "Hei", "Goede morgen", "Bonjour", "Hoi", "Ola", "Gamardžoba", "Guten Tag", "Mauri", "Geia!", "Inuugujoq", "Kem cho", "Sannu", "Aloha", "Shalóm", "Namasté", "Szia", "Halló", "Hai", "Kiana", "Dia is muire dhuit", "Buongiorno", "Kónnichi wa", "Salam", "Annyeonghaseyo", "Na", "Sabai dii", "Ave", "Es mīlu tevi", "Labas.", "Selamat petang", "Ni hao", "Kia ora", "Yokwe", "Kwe", "sain baina uu", "niltze", "Yá'át'ééh", "Namaste", "Hallo.", "Salâm", "Witajcie", "Olá", "Kâils", "Aroha", "Salut", "Privét", "Talofa", "Namo namah", "ćao", "Nazdar", "Zdravo", "Hola", "Jambo", "Hej", "Sälü", "Halo", "Selam", "Sàwàtdee kráp", "Dumela", "Merhaba", "Pryvít", "Adaab arz hai", "Chào", "Glidis", "Helo", "Sawubona", "Hoi"]
self.send(random.choice(greetings))
else:
self.did_say_yes = True
self.send("yes?")

def command_VERSION(self, args):
self.send("buildbot-%s at your service" % version)
Expand Down

0 comments on commit 16de300

Please sign in to comment.