Skip to content

Commit 285cace

Browse files
committed
Move glomps out to text file
1 parent 23bc00b commit 285cace

2 files changed

Lines changed: 14 additions & 4 deletions

File tree

data/glomp.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
glomps
2+
tackles
3+
tackle hugs
4+
sexually glomps
5+
takes a flying leap and glomps
6+
bear hugs

plugins/hookup.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@
1313
bitesyns = ["bites", "nips", "nibbles", "chomps", "licks", "teases", "chews", "gums", "tastes"]
1414
bodyparts = ["cheeks", "ear lobes", "nipples", "nose", "neck", "toes", "fingers", "butt", "taint", "thigh", "grundle", "tongue", "calf", "nurses", "nape"]
1515

16-
glomps = ["glomps", "tackles", "tackle hugs", "sexually glomps", "takes a flying leap and glomps", "bear hugs"]
17-
18-
usrcache = []
16+
glomps = []
1917

2018

2119
@hook.on_start
22-
def load_hookups(bot):
20+
def load_data(bot):
2321
hookups.clear()
22+
glomps.clear()
23+
2424
with codecs.open(os.path.join(bot.data_dir, "hookup.json"), encoding="utf-8") as f:
2525
hookups.update(json.load(f))
2626

27+
with codecs.open(os.path.join(bot.data_dir, "glomp.txt"), encoding="utf-8") as f:
28+
lines = (line.strip() for line in f if not line.startswith("//"))
29+
glomps.extend(filter(None, lines))
30+
2731

2832
@hook.command(autohelp=False)
2933
def hookup(db, chan):

0 commit comments

Comments
 (0)