import random
from base import BaseMatcher


class VolunteerMatcher(BaseMatcher):
    dev_text = "volunteer someone"
    all_text = "volunteer a dev"
    dev_candidates = ['Steve', 'Arthur', 'Honza', 'Fernando', 'Nick']
    all_candidates = dev_candidates + ['Craig', 'Evan']

    def respond(self, message, user=None):
        if self.dev_text in message.lower():
            victim = random.choice(self.dev_candidates)
            self.speak('%s is it' % victim)
        elif self.all_text in message.lower():
            victim = random.choice(self.all_candidates)
            self.speak('%s is it' % victim)

import random
from base import BaseMatcher


class VolunteerMatcher(BaseMatcher):
    dev_text = "volunteer someone"
    all_text = "volunteer a dev"
    dev_candidates = ['sjl', 'arthurdebert', 'honza', 'fernandotakai', 'nicksergeant']
    all_candidates = dev_candidates + ['cz', 'ehazlett']

    def respond(self, message, user=None):
        if self.dev_text in message.lower():
            victim = random.choice(self.dev_candidates)
            self.speak('%s is it' % victim)
        elif self.all_text in message.lower():
            victim = random.choice(self.all_candidates)
            self.speak('%s is it' % victim)

Use IRC Nicks instead of real names.
Use IRC Nicks instead of real names.

  import random
  from base import BaseMatcher
  
  
  class VolunteerMatcher(BaseMatcher):
      dev_text = "volunteer someone"
      all_text = "volunteer a dev"
-     dev_candidates = ['Steve', 'Arthur', 'Honza', 'Fernando', 'Nick']
+     dev_candidates = ['sjl', 'arthurdebert', 'honza', 'fernandotakai', 'nicksergeant']
-     all_candidates = dev_candidates + ['Craig', 'Evan']
+     all_candidates = dev_candidates + ['cz', 'ehazlett']
  
      def respond(self, message, user=None):
          if self.dev_text in message.lower():
              victim = random.choice(self.dev_candidates)
              self.speak('%s is it' % victim)
          elif self.all_text in message.lower():
              victim = random.choice(self.all_candidates)
              self.speak('%s is it' % victim)
  
Use IRC Nicks instead of real names.
## Code Before:
import random
from base import BaseMatcher


class VolunteerMatcher(BaseMatcher):
    dev_text = "volunteer someone"
    all_text = "volunteer a dev"
    dev_candidates = ['Steve', 'Arthur', 'Honza', 'Fernando', 'Nick']
    all_candidates = dev_candidates + ['Craig', 'Evan']

    def respond(self, message, user=None):
        if self.dev_text in message.lower():
            victim = random.choice(self.dev_candidates)
            self.speak('%s is it' % victim)
        elif self.all_text in message.lower():
            victim = random.choice(self.all_candidates)
            self.speak('%s is it' % victim)

## Instruction:
Use IRC Nicks instead of real names.
## Code After:
import random
from base import BaseMatcher


class VolunteerMatcher(BaseMatcher):
    dev_text = "volunteer someone"
    all_text = "volunteer a dev"
    dev_candidates = ['sjl', 'arthurdebert', 'honza', 'fernandotakai', 'nicksergeant']
    all_candidates = dev_candidates + ['cz', 'ehazlett']

    def respond(self, message, user=None):
        if self.dev_text in message.lower():
            victim = random.choice(self.dev_candidates)
            self.speak('%s is it' % victim)
        elif self.all_text in message.lower():
            victim = random.choice(self.all_candidates)
            self.speak('%s is it' % victim)
