import random

ateball = [
        "It is certain",
        "It is decidedly so",
        "Without a doubt",
        "Yes definitely",
        "You may rely on it",
        "As I see it yes",
        "Most likely",
        "Outlook good",
        "Yes",
        "Signs point to yes",
        "Reply hazy try again",
        "Ask again later",
        "Better not tell you now",
        "Cannot predict now",
        "Concentrate and ask again",
        "Don't count on it",
        "My reply is no",
        "My sources say no",
        "Outlook not so good",
        "Very doubtful",
]

def run(data, settings):
    if ('8ball' in data['payload']):
        return random.choice(ateball)

import random

ateball = [
        "It is certain.",
        "It is decidedly so.",
        "Without a doubt.",
        "Yes, definitely.",
        "You may rely on it.",
        "As I see it, yes.",
        "Most likely.",
        "Outlook good.",
        "Yes.",
        "Signs point to yes.",
        "Reply hazy, try again.",
        "Ask again later.",
        "Better not tell you now.",
        "Cannot predict now.",
        "Concentrate and ask again.",
        "Don't count on it.",
        "My reply is no.",
        "My sources say no.",
        "Outlook not so good.",
        "Very doubtful.",
]

def run(data, settings):
    if '8ball' in data['payload']:
            say = '{nick}: {fortune}'.format(nick=data['nick'],
                                             fortune=random.choice(ateball))
            return say

Revert "Revert "Added nickname and punct, removed parens""
Revert "Revert "Added nickname and punct, removed parens""

This reverts commit ab4e279a6866d432cd1f58a07879e219360b4911.

  import random
  
  ateball = [
-         "It is certain",
+         "It is certain.",
-         "It is decidedly so",
+         "It is decidedly so.",
-         "Without a doubt",
+         "Without a doubt.",
-         "Yes definitely",
+         "Yes, definitely.",
-         "You may rely on it",
+         "You may rely on it.",
-         "As I see it yes",
+         "As I see it, yes.",
-         "Most likely",
+         "Most likely.",
-         "Outlook good",
+         "Outlook good.",
-         "Yes",
+         "Yes.",
-         "Signs point to yes",
+         "Signs point to yes.",
-         "Reply hazy try again",
+         "Reply hazy, try again.",
-         "Ask again later",
+         "Ask again later.",
-         "Better not tell you now",
+         "Better not tell you now.",
-         "Cannot predict now",
+         "Cannot predict now.",
-         "Concentrate and ask again",
+         "Concentrate and ask again.",
-         "Don't count on it",
+         "Don't count on it.",
-         "My reply is no",
+         "My reply is no.",
-         "My sources say no",
+         "My sources say no.",
-         "Outlook not so good",
+         "Outlook not so good.",
-         "Very doubtful",
+         "Very doubtful.",
  ]
  
  def run(data, settings):
-     if ('8ball' in data['payload']):
+     if '8ball' in data['payload']:
-         return random.choice(ateball)
+             say = '{nick}: {fortune}'.format(nick=data['nick'],
+                                              fortune=random.choice(ateball))
+             return say
  
Revert "Revert "Added nickname and punct, removed parens""
## Code Before:
import random

ateball = [
        "It is certain",
        "It is decidedly so",
        "Without a doubt",
        "Yes definitely",
        "You may rely on it",
        "As I see it yes",
        "Most likely",
        "Outlook good",
        "Yes",
        "Signs point to yes",
        "Reply hazy try again",
        "Ask again later",
        "Better not tell you now",
        "Cannot predict now",
        "Concentrate and ask again",
        "Don't count on it",
        "My reply is no",
        "My sources say no",
        "Outlook not so good",
        "Very doubtful",
]

def run(data, settings):
    if ('8ball' in data['payload']):
        return random.choice(ateball)

## Instruction:
Revert "Revert "Added nickname and punct, removed parens""
## Code After:
import random

ateball = [
        "It is certain.",
        "It is decidedly so.",
        "Without a doubt.",
        "Yes, definitely.",
        "You may rely on it.",
        "As I see it, yes.",
        "Most likely.",
        "Outlook good.",
        "Yes.",
        "Signs point to yes.",
        "Reply hazy, try again.",
        "Ask again later.",
        "Better not tell you now.",
        "Cannot predict now.",
        "Concentrate and ask again.",
        "Don't count on it.",
        "My reply is no.",
        "My sources say no.",
        "Outlook not so good.",
        "Very doubtful.",
]

def run(data, settings):
    if '8ball' in data['payload']:
            say = '{nick}: {fortune}'.format(nick=data['nick'],
                                             fortune=random.choice(ateball))
            return say
