Updated fortune.py to match other plugins
This commit is contained in:
parent
27198b3425
commit
496d5c4f9d
1 changed files with 2 additions and 6 deletions
|
@ -2,13 +2,9 @@ from util import hook
|
|||
import re
|
||||
import random
|
||||
|
||||
fortunes = []
|
||||
|
||||
with open("plugins/data/fortunes.txt") as f:
|
||||
for line in f.readlines():
|
||||
if line.startswith("//"):
|
||||
continue
|
||||
fortunes.append(line.strip())
|
||||
fortunes = [line.strip() for line in f.readlines()
|
||||
if not line.startswith("//")]
|
||||
|
||||
|
||||
@hook.command(autohelp=False)
|
||||
|
|
Reference in a new issue