Skip to content

Commit

Permalink
Merge pull request #84 from wendy348/current
Browse files Browse the repository at this point in the history
Current
  • Loading branch information
Sarah Rose authored Oct 14, 2020
2 parents fa6636b + 130eaba commit 980eee3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 8 deletions.
17 changes: 11 additions & 6 deletions characters/monika.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def __init__(self):
self.color = "0x12ba01"
self.description = "Monika is a character in the game Doki Doki Literature Club, she is the president of the Literature Club founded by her and along with her club members she spends her time after school in the club."
self.id = 707337539677192272
self.token = ""
self.token = "NzA3MzM3NTM5Njc3MTkyMjcy.XrHVuA._ktH6TojEZJtFIr10QMyc_fmjR0"
self.prefix = "(M|m)(onika)?_"
self.deletes = []
self.loop = asyncio.get_event_loop()
Expand Down Expand Up @@ -341,8 +341,6 @@ def interactions(self, tamper=False, bot=None, message=None):
if "hm. i don't really like this yuri too much. give me a second." in content.lower():
return "y_tamper"
if "ugh, fine." in content.lower():
user = next( (c for c in self.deletes if c[0] == message.channel.id), None)
self.deletes.remove(user)
return discord.Embed(title=f"os.restore(\"./characters/{user[1]}.chr\")",color=int(self.color, base=16))
elif message.author.id == sayoriID:
if re.search(r"\*hugs <@!?{0}>\*".format(bot.user.id), content, re.IGNORECASE):
Expand Down Expand Up @@ -700,9 +698,9 @@ def triggers(self, tamper=False, content=""):
])
elif re.search("(^|[^A-Za-z])poems?([^A-Za-z]|$)", content, re.IGNORECASE):
return random.choice([
"Ahaha, just me...and you, too!",
"Ahaha, did someone call me? :heart:",
"That's sweet of you, but it's not just me anymore!"
"Hey, do you write poems too?",
"Do you like to read poems?",
"If you have any poems you'd like to share, I'd love to see them~"
])
elif re.search("(^|[^A-Za-z])(literature|books?)([^A-Za-z]|$)", content, re.IGNORECASE):
return random.choice([
Expand All @@ -716,3 +714,10 @@ def triggers(self, tamper=False, content=""):
"Ahaha, did someone call me? :heart:",
"That's sweet of you, but it's not just me anymore!"
])

def welcome(self, tamper=False, member=False):
if not tamper and member:
return rstr.xeger(r"Ah, " + member + r"! What a nice surprise! (Welcome to|Enjoy your stay in|Have a great time in) the club[!\.~]")
elif member:
return f"Welcome to the literature club {member} darling, now it's just you and me... forever."
return
11 changes: 9 additions & 2 deletions characters/sayori.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def __init__(self):
self.color = "0x3eb0ff"
self.description = "Sayori is a character in the game Doki Doki Literature Club, she is the vice president of the Literature Club founded by Monika and along with the other club members she spends her time after school in the club."
self.id = 580133736721678341
self.token = ""
self.token = "NTgwMTMzNzM2NzIxNjc4MzQx.XqMmsw.IS8cOl_y0wCRk_7ftZt82usJ5j8"
self.prefix = "(S|s)(ayori)?_"
self.help = {
"commands": {
Expand Down Expand Up @@ -359,7 +359,7 @@ def interactions(self, tamper=False, bot=None, message=None):
if "finnnnnnne, sayori." in content.lower():
return f"YAY! *keeps hugging <@{mcID}>*"
if f"<@{bot.user.id}>" in content.lower():
return f"Yes, <@{mcID}>?*"
return f"Yes, <@{mcID}>?"
if "i-i love you, sayori" in content.lower():
return f"I-I do too! *hugs MC*"
else:
Expand Down Expand Up @@ -729,3 +729,10 @@ def triggers(self, tamper=False, content=""):
"Cease your bulli, you meanie!",
"Boo! You meanie..."
])

def welcome(self, tamper=False, member=False):
if not tamper and member:
return rstr.xeger(r"Everyone! (The n|We have a n|N)ew member,? " + member + r", (is here|just joined)~?!( Ehehehe~)?e~")
elif member:
return f"{member} Welcome... I guess, what's the point of even joining when this club is failing..."
return

0 comments on commit 980eee3

Please sign in to comment.