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 re
|
||||||
import random
|
import random
|
||||||
|
|
||||||
fortunes = []
|
|
||||||
|
|
||||||
with open("plugins/data/fortunes.txt") as f:
|
with open("plugins/data/fortunes.txt") as f:
|
||||||
for line in f.readlines():
|
fortunes = [line.strip() for line in f.readlines()
|
||||||
if line.startswith("//"):
|
if not line.startswith("//")]
|
||||||
continue
|
|
||||||
fortunes.append(line.strip())
|
|
||||||
|
|
||||||
|
|
||||||
@hook.command(autohelp=False)
|
@hook.command(autohelp=False)
|
||||||
|
|
Reference in a new issue