Rewrote slogan plugin to make slogans locally

This commit is contained in:
Luke Rogers 2012-08-23 14:56:00 +12:00
parent 9f174f66dc
commit ad7d5b30dd
2 changed files with 208 additions and 17 deletions

197
plugins/data/slogans.txt Executable file
View file

@ -0,0 +1,197 @@
<text> - get ready.
Everyone should believe in <text>.
<text>, where success is at home.
<text>, your way!
<text>, this is it!
And on the eighth day, god created <text>.
<text> innovate your world.
Are you ready for <text>?
See you at <text>.
<text>'s got it all!
<text> makes your day.
<text>rific.
The queen buys <text>.
Where's your <text>?
<text> groove.
There's lots of fun in <text>.
<text>, you'll love it!
I'd do anything for <text>.
Go to heaven with <text>.
<text> on the outside, tasty on the inside.
<text> - a safe place in an unsafe world!
World's finest <text>.
<text> is your friend.
<text>, it's as simple as that!
Free <text>.
<text> - Just do it.
The age of <text>.
The <text> spirit.
Let's talk about <text>.
Do it with <text>.
<text> brings out the best.
Take what you want, but leave <text> alone!
<text> for your health.
<text> is my passion.
The best <text> in the world.
Follow your <text>.
A day with <text>.
The American Way of <text>.
Enjoy <text>.
The Power of <text>.
Every <text> has a story.
<text> - it's like heaven!
Endless possibilities with <text>.
Go farther with <text>.
<text> is my world.
<text> evolution.
<text> - now!
For the love of <text>.
When you say <text> you've said it all.
<text>, pure lust.
Who is <text>?
<text> empowers you.
Don't worry, <text> takes care.
My <text> beats everything.
Share moments, share <text>.
<text> it's a kind of magic.
<text> - living innovation
<text> - a class of it's own
<text>. We build smiles.
I believe in <text>.
<text> - Think different.
Let your <text> flow.
Heal the world with <text>.
I'd sleep with <text>.
Bigger. Better. <text>.
You can't beat <text>.
Say it with <text>.
<text>, there's no better way.
<text>, stay in touch.
<text> never lies.
Play <text>, start living.
Don't forget your <text>.
The <text> effect.
<text> - what more could you want?
Kick ass with <text>!
You know when it's <text>.
Good to know <text>.
My <text> and me.
<text> - be prepared.
Oh my gods, it's a <text>.
There is no life without <text>.
<text> - You see this name, you think dirty.
<text> is my sport.
<text>, one for all.
<text> is a never ending story.
<text> for you!
Everyone loves <text>.
<text>, better than sex.
<text> only.
Inspired by <text>.
<text>. Making people sucessful in a changing world.
Who wouldn't fight for <text>?
Lucky <text>.
Think. Feel. <text>.
<text> rocks.
Think <text>.
<text> is the sound of the future.
I want <text> and I want it now.
<text>, the real thing.
The gods made <text>.
With a name like <text>, it has to be good.
Discover the world of <text>.
Live <text>.
You don't want <text> as your enemy!
<text> - enjoy the difference.
Buy <text> now!
Don't mess with <text>.
Made by <text>.
Be alive with <text>.
<text> values.
High life with <text>.
<text>, whiter than the whitest!
<text> - play it!
Can you feel <text>?
Simply <text>!
<text>? You bet.
<text> - The Revolution.
<text> - your game.
<text> is your safe place in an unsafe world!
Go far with <text>.
God made <text>.
<text> keeps going, and going, and going...
The <text> universe.
I can't believe it's <text>.
<text> moments.
I lost weight with <text>.
There's only one true <text>!
The Future of <text>.
<text> - If you love <text>.
<text> beat.
My way is <text>.
Think different, think <text>.
Nonstop <text>.
All you need is <text>.
<text> is what the world was waiting for.
<text> for the masses.
<text>, the smart choice.
<text> forever.
<text> - Your personal entertainer.
<text> makes me hot.
<text> kicks ass.
There's only one thing in the world I want and that is <text>.
<text> will be for you what you want it to be.
<text> for everyone.
<text> - once you have it, you love it.
Break through with <text>.
The original <text>.
3... 2... 1... <text>.
The goddess made <text>.
Halleluja, it's a <text>.
<text> is rolling, the others are stoned.
My <text>, your <text>, <text> for all!
<text> for a professional image.
<text> for president.
Make yourself at home with <text>.
<text>, just the best.
You can't stop <text>.
<text> extra dry.
Call a friend, call <text>.
Don't get in the way of <text>.
<text>, your family will love you.
<text> is a female force.
Feel good with <text>.
You wouldn't want to miss <text>.
<text> Dreamteam.
I wish i was a <text>.
Where's <text>?
Jesus loves <text>.
The Queen of <text>.
Life's beautiful with <text>.
Swing your <text>.
The one and only <text>.
<text>? Yes please.
<text>, your specialist.
<text> is good for you.
Feel the magic of <text>.
<text> rules.
It's time to think about <text>.
<text>, so what!
<text> inside you.
The Spirit of <text>.
Up, up and away with <text>.
<text> - first class!
It's my <text>!
The secret of <text>.
Easy <text>.
Just <text>.
<text> never die.
<text> - be ready.
Say <text>.
Feel it - <text>!
I trust <text>.
<text>, to hell with the rest.
<text>, the original.
<text> is the only way to be happy.
<text> - One name. One legend.
The ideal <text>.

View file

@ -1,23 +1,17 @@
from util import hook, http, misc
import re
import string
from util import hook, text
import random
def sloganize(word):
bytes = http.get('http://www.sloganizer.net/en/outbound.php', slogan=word)
return bytes
with open("plugins/data/slogans.txt") as f:
slogans = [line.strip() for line in f.readlines()
if not line.startswith("//")]
@hook.command("slogan")
def sloganizr(inp, nick=None, say=None, input=None):
@hook.command
def slogan(inp):
"slogan <word> -- Makes a slogan for <word>."
slogan = sloganize(inp)
out = random.choice(slogans)
if inp.lower() and out.startswith("<text>"):
inp = text.capitalize_first(inp)
slogan = misc.strip_html(slogan)
if inp.islower():
slogan = slogan.split()
slogan[0] = slogan[0].capitalize()
slogan = " ".join(slogan)
return slogan
return out.replace('<text>', inp)