Example #1
0
    def execute(self):
        if not self.args:
            return

        victim = self.args.split()[0][:25]
        if random.randint(0, len(self.slapitems)) == len(self.slapitems):
            slap = self.slaps[0]
        else:
            slap = self.slaps[1]
        txt = slap.format(victim=plugins.myfilter(victim), howmuch=random.choice(["", " a bit", " a little bit"]), withitem=random.choice(self.slapitems))
        plugins.me(self.connection, self.target, txt)

        if random.random() < 0.25:
            func, txt = random.choice(self.slaps_extra)
            func(self.connection, self.target, txt)
Example #2
0
 def slap2(self, victim):
     plugins.me(self.connection, self.target,  "slaps %s around a bit with a Piece of bacon" % victim)
     plugins.say(self.connection, self.target, "Hey %s Eat some pork!" % victim)