From b1703eb076e779c12207285b3514c444e25f6c8a Mon Sep 17 00:00:00 2001 From: Sakimori Date: Sun, 20 Dec 2020 00:13:23 -0500 Subject: [PATCH] added introduction command, to be run by owner only --- the-prestige.pyproj | 1 - the_prestige.py | 35 +++++++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 11 deletions(-) diff --git a/the-prestige.pyproj b/the-prestige.pyproj index 4f1cecf..aed8829 100644 --- a/the-prestige.pyproj +++ b/the-prestige.pyproj @@ -42,7 +42,6 @@ - diff --git a/the_prestige.py b/the_prestige.py index f980c2a..b2387df 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -30,20 +30,35 @@ async def on_ready(): @client.event async def on_message(msg): - command = False + command_b = False for prefix in config()["prefix"]: if msg.content.startswith(prefix): - command = True - command_s = msg.content.split(prefix, 1) - if not command: + command_b = True + command = msg.content.split(prefix, 1)[1] + print(command) + if not command_b: return - if msg.channel.id == config()["soulscream channel id"]: - #try: - await msg.channel.send(ono.get_stats(msg.author.nick)) - #except TypeError: - #await msg.channel.send(ono.get_stats(msg.author.name)) - + if msg.author.id in config()["owners"] and command == "introduce": + await introduce(msg.channel) + + elif msg.channel.id == config()["soulscream channel id"]: + try: + await msg.channel.send(ono.get_stats(msg.author.nick)) + except TypeError: + await msg.channel.send(ono.get_stats(msg.author.name)) + + + +async def introduce(channel): + text = """**Your name, favorite team, and pronouns**: Matteo Prestige, CHST, they/them ***only.*** There's more than one of us up here, after all. +**What are you majoring in (wrong answers only)**: Economics. +**Your favorite and least favorite beverage, without specifying which**: Vanilla milkshakes, chocolate milkshakes +**Favorite non-Mild Low team**: The Mills. We hope they're treating Ren alright. +**If you were a current blaseball player, who would you be**: We refuse to answer this question. +**Your hobbies/interests**: Minigolf, blaseball, felony insider trading. +""" + await channel.send(text) client.run(config()["token"]) \ No newline at end of file