disabled many plugins
This commit is contained in:
parent
0ba2001b62
commit
7cce9bf27e
119 changed files with 0 additions and 20 deletions
18
disabled_stuff/slogan.py
Normal file
18
disabled_stuff/slogan.py
Normal file
|
@ -0,0 +1,18 @@
|
|||
import random
|
||||
|
||||
from util import hook, text
|
||||
|
||||
|
||||
with open("plugins/data/slogans.txt") as f:
|
||||
slogans = [line.strip() for line in f.readlines()
|
||||
if not line.startswith("//")]
|
||||
|
||||
|
||||
@hook.command
|
||||
def slogan(inp):
|
||||
"""slogan <word> -- Makes a slogan for <word>."""
|
||||
out = random.choice(slogans)
|
||||
if inp.lower() and out.startswith("<text>"):
|
||||
inp = text.capitalize_first(inp)
|
||||
|
||||
return out.replace('<text>', inp)
|
Reference in a new issue