reset password
Author Message
rcksorto
Posts: 5
Posted 20:57 Oct 11, 2014 |

#!/usr/bin/env python

import random

class Claptrap(object):
    """Allow me to indroduce myself - I am a CL4P-TP steward bot, but my friends call me Claptrap!"""
    def __init__(self):
        self.phrases = ["I'm over here!", "Greetings traveller, there are new missions available at the Fyrestone Bounty-board!", "Hey, check me out! I'm dancin', I'm dancin'!", "Unce! Unce! I think I lost the beat... but, Unce! Unce!", "Wannna hear a new dubstep song I wrote? Wub, wub, wub... wub, wub, wub...", "Did you find the Vault yet?", "Turning off the optics... they can't see me...", "Oh my God, I'm leaking! I think I'm leaking!"]

    def say_something(self):
        self.phrase = str()
        self.phrase = self.phrases[random.randint(0, len(self.phrases)-1)]
        return self.phrase
        
if __name__ == "__main__":
    CL4P = Claptrap()
    print "Clappy: " + CL4P.say_something()

Last edited by rcksorto at 21:03 Oct 11, 2014.
Ethanxo4
Posts: 6
Posted 12:26 Oct 20, 2014 |

My friend, it sounds like you definitely need some advisement. You've come to the right place~.