added introduction command, to be run by owner only
This commit is contained in:
parent
25c7547dea
commit
7189257e7a
|
@ -5,6 +5,8 @@ VisualStudioVersion = 16.0.30011.22
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "the-prestige", "the-prestige.pyproj", "{2738449B-4B76-4ED0-AA18-3494AAA9E184}"
|
Project("{888888A0-9F3D-457C-B088-3A5042F75D52}") = "the-prestige", "the-prestige.pyproj", "{2738449B-4B76-4ED0-AA18-3494AAA9E184}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{4BD2E319-AA17-4FDB-893E-675296EB8F4B}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
|
|
|
@ -30,20 +30,35 @@ async def on_ready():
|
||||||
|
|
||||||
@client.event
|
@client.event
|
||||||
async def on_message(msg):
|
async def on_message(msg):
|
||||||
command = False
|
command_b = False
|
||||||
for prefix in config()["prefix"]:
|
for prefix in config()["prefix"]:
|
||||||
if msg.content.startswith(prefix):
|
if msg.content.startswith(prefix):
|
||||||
command = True
|
command_b = True
|
||||||
command_s = msg.content.split(prefix, 1)
|
command = msg.content.split(prefix, 1)[1]
|
||||||
if not command:
|
print(command)
|
||||||
|
if not command_b:
|
||||||
return
|
return
|
||||||
|
|
||||||
if msg.channel.id == config()["soulscream channel id"]:
|
if msg.author.id in config()["owners"] and command == "introduce":
|
||||||
#try:
|
await introduce(msg.channel)
|
||||||
await msg.channel.send(ono.get_stats(msg.author.nick))
|
|
||||||
#except TypeError:
|
|
||||||
#await msg.channel.send(ono.get_stats(msg.author.name))
|
|
||||||
|
|
||||||
|
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"])
|
client.run(config()["token"])
|
Loading…
Reference in New Issue
Block a user