Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"difficult" : [("**`Easy mode is now selectable.`**", 1)],
"storm" : [("***I AM THE STORM THAT IS APPROACHING!***", 1)],
"curious" : [("**This is... curious.**", 9),
("https://files.herma.moe/vergil/curious.jpg", 1),]
("https://files.herma.moe/vergil/curious.jpg", 1),],
"die" : [("**`You shall die...`**", 1)],
"working" : [("**Must more blood be shed...?**", 1)],
}

client = discord.Client(intents=intents)
Expand Down Expand Up @@ -72,6 +74,12 @@ async def on_message(message):
if await multi_contains(message.content, ["curious", "curios", "strange", "interesting", "wtf", "what the fuck"]):
await message.channel.send(choose([i[0] for i in responses["curious"]],
weights=[i[1] for i in responses["curious"]])[0])
if await multi_contains(message.content, ["die"]):
await message.channel.send(choose([i[0] for i in responses["die"]],
weights=[i[1] for i in responses["die"]])[0])
if await multi_contains(message.content, ["why isn't this working", "why isnt this working"]):
await message.channel.send(choose([i[0] for i in responses["working"]],
weights=[i[1] for i in responses["working"]])[0])

async def multi_contains(m="", x=None):
for i in x:
Expand Down