A dash of PEP-8
This commit is contained in:
parent
398b34fad5
commit
6cc7554cd8
11 changed files with 34 additions and 35 deletions
|
@ -1,4 +1,3 @@
|
|||
# Plugin by Lukeroge
|
||||
from util import hook, text, textgen
|
||||
import json
|
||||
import os
|
||||
|
@ -10,13 +9,13 @@ GEN_DIR = "./plugins/data/name_files/"
|
|||
def get_generator(_json):
|
||||
data = json.loads(_json)
|
||||
return textgen.TextGenerator(data["templates"],
|
||||
data["parts"], default_templates=data["default_templates"])
|
||||
data["parts"], default_templates=data["default_templates"])
|
||||
|
||||
|
||||
@hook.command(autohelp=False)
|
||||
def namegen(inp, notice=None):
|
||||
"namegen [generator] -- Generates some names using the chosen generator. " \
|
||||
"'namegen list' will display a list of all generators."
|
||||
"""namegen [generator] -- Generates some names using the chosen generator.
|
||||
'namegen list' will display a list of all generators."""
|
||||
|
||||
# clean up the input
|
||||
inp = inp.strip().lower()
|
||||
|
|
Reference in a new issue