rawsonj / triviabot

A simple IRC trivia bot written in python using twisted.
GNU General Public License v3.0
41 stars 51 forks source link

Junk lines seemed to all end with spaces... #45

Closed edunham closed 8 years ago

edunham commented 8 years ago

This commit deletes all lines that ended with spaces. This seems to bear a striking correlation to the lines which made it into the question db by the rogue nonsense-generator.

GitHub's unhappy about showing this diff, so here's a snippet of example...

1992 - What album did Neil Young release as a sequel to his 1972 lp Harvest`Harvest M
 1992 - what athelete's autobiography was simply titled my life`magic johnson
 1992 - what athelete's autobiography was simply titled my life?`magic johnson's
-1992 - what baseball skipper was named national league manager of the year`francisco 
-1992 - What baseball skipper was named National League Manager of the Year`jim franci
 1992 - What baseball skipper was named National League Manager of the Year`jim leylan
 1992 - what beloved baseball broadcaster dies on october 22?`red barber
-1992 - what biblical disease did 39 texans come down with in 1992`atkins 
 1992 - What Biblical disease did 39 Texans come down with in 1992`leprosy
 1992 - What british actor penned the autobiography 'What's It All About'`Michael Cain
 1992 - What cartoon rabbit spaceman fights alien toads with lasers`bucky o'hare
-1992 - What cartoon rabbit spaceman fights alien toads with lasers`bucky orange 
-1992 - what cartoon rabbit spaceman fights alien toads with lasers`orange 
 1992 - what caused universal to postpone the july 3 release of the looters`la riots
 1992 - what city did superman save from destruction before biting the dust`metropolis
-1992 - what city is terrorized by a toddler in honey, i blew up the kid`defenders 
 1992 - what city is terrorized by a toddler in honey, i blew up the kid`las vegas
 1992: What city saw 3,700 fires started on the last two days of April`los angeles
 1992 - what colombian drug lord's fortune was pegged by forbes at 5 billion dollars`p
 1992 - what colombian drug lord's fortune was pegged by forbes at 5 billion dollars?`
 1992 - What continent had the greatest explosion of AIDS cases`Africa
-1992 - what continent had the greatest explosion of aids cases`eight 
 1992 - what country saw the opening of euro disneyland`france
-1992 - what country saw the opening of euro disneyland`quarterback 
-1992 - what country topped winter olympics medalists with a total of 26`balsam 
 1992 - what country topped winter olympics medalists with a total of 26`germany
 1992 - what credit card company recorded 205 million dollars in 3rd quarter losses`am
 1992 - What Democratic hopeful's birth date received a draft lottery #311`bill clinto
 1992 - what democratic hopeful turned down a music scholarship to lsu?`bill clinton
 1992 - What democrat won the New Hampshire primary`paul tsongas
-1992 - What did sexologists Willam Masters and Virginia Johnson file for`carpenters 
 1992 - What did sexologists Willam Masters and Virginia Johnson file for`divorce

Fixes https://github.com/rawsonj/triviabot/issues/7

rawsonj commented 8 years ago

There are a few questions in here that look like they don't follow the awesome observation you have made, but I think that's mostly just the 80's TV questions.

Thanks for this.