File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ def load_jokes(bot):
2929
3030 with codecs .open (os .path .join (bot .data_dir , "wisdom.txt" ), encoding = "utf-8" ) as f :
3131 wisdom = [line .strip () for line in f .readlines () if not line .startswith ("//" )]
32-
32+
3333 with codecs .open (os .path .join (bot .data_dir , "book_puns.txt" ), encoding = "utf-8" ) as f :
3434 book_puns = [line .strip () for line in f .readlines () if not line .startswith ("//" )]
3535
@@ -91,10 +91,10 @@ def boobies(text, conn):
9191def awesome (text , message ):
9292 """Prints a webpage to show <nick> how awesome they are."""
9393 nick_re = re .compile ("^[A-Za-z0-9_|.\-\]\[]*$" , re .I )
94- link = 'http://{}. is-awesome.cool/{}'
94+ link = 'http://is-awesome.cool/{}'
9595 nick = text .split (' ' )[0 ]
9696 if nick_re .match (nick ):
97- message ("{}: I am blown away by your recent awesome action(s). Please read \x02 {}\x02 " .format (nick , link .format (nick , nick )))
97+ message ("{}: I am blown away by your recent awesome action(s). Please read \x02 {}\x02 " .format (nick , link .format (nick )))
9898 else :
9999 return "Sorry I can't tell {} how awesome they are." .format (nick )
100100
You can’t perform that action at this time.
0 commit comments