From 20ecaa1268bc301ad54c75f810448a69e8ffbfe4 Mon Sep 17 00:00:00 2001 From: seth Date: Fri, 31 Mar 2023 16:21:34 -0400 Subject: Twitter's Recommendation Algorithm --- teawie_bot/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'teawie_bot/bot.py') diff --git a/teawie_bot/bot.py b/teawie_bot/bot.py index 835783a..aeb8b22 100644 --- a/teawie_bot/bot.py +++ b/teawie_bot/bot.py @@ -28,10 +28,11 @@ async def on_message(message: discord.Message): echo_messages = [ "🗿", + "Twitter's Recommendation Algorithm", ] echo_messages = echo_messages + bot.teawies.emojis try: - index = echo_messages.index(message.content.lower()) + index = echo_messages.index(message.content) await message.channel.send(echo_messages[index]) except ValueError: pass @@ -74,6 +75,7 @@ async def teawiespam(ctx: commands.Context): app_commands.Choice(name="amongus_sus", value="amongus_sus"), app_commands.Choice(name="egrill", value="egrill"), app_commands.Choice(name="dvd", value="dvd"), + app_commands.Choice(name="twitter", value="twitter"), ]) async def copypasta(interaction: discord.Interaction, choices: app_commands.Choice[str]): -- cgit v1.2.3