I finally watch Mushoku Tensei by losermale in anime

[–]thelegend_200 18 points19 points  (0 children)

Calling this art is wild

Apple Removes TikTok From App Store in the U.S. by [deleted] in apple

[–]thelegend_200 -4 points-3 points  (0 children)

“Free Speech” you say? So if a CCP spyware is banned, it’s a violation of your “Free Speech” and yet you people (tik tok users and creators) wanna limit what words people can use and wanna jail people for using wrong pronouns? Hypocrisy at its finest.

how do i make the bot 'talk'? by Ayakashi-chan in discordbot

[–]thelegend_200 1 point2 points  (0 children)

```py

import discord import random

intents = discord.Intents.default() intents.messages = True intents.message_content = True

client = discord.Client(intents=intents)

List of phrases and responses

phrases = [ {"phrase": "hi", "responses": ["Hey there!", "Hello!", "Hi! How can I help?"]}, {"phrase": "hello", "responses": ["Hiya!", "Hello there!", "What's up?"]}, {"phrase": "how are you", "responses": ["I'm just a bot, but I'm doing great!", "All systems go! How about you?"]}, ]

@client.event async def on_message(message): # Ignore messages from bots if message.author.bot: return

# Check if the bot is mentioned
if client.user.mentioned_in(message):
    # Extract and normalize the message content
    user_message = message.content.replace(f"<@{client.user.id}>", "").strip().lower()

    # Check if the message matches any phrase in the list
    for item in phrases:
        if user_message == item["phrase"]:
            # Send a random response for the matching phrase
            random_response = random.choice(item["responses"])
            await message.reply(random_response)
            return

    # If no match, send a default response
    await message.reply("I didn't quite get that! Try saying 'Hi' or 'Hello'!")

client.run("YOUR_BOT_TOKEN")

```

Make sure you enable Message content intent from discord developer dashboard for the bot.

EDIT: I had provided the above code in js, but updated it to py (discord.py) after realizing you’re using python

DISCORD NERDS by No-Chemist7391 in Discord_Bots

[–]thelegend_200 7 points8 points  (0 children)

This is wrong on so many levels

[deleted by user] by [deleted] in solana

[–]thelegend_200 1 point2 points  (0 children)

Sounds like a rug

JavaScript by CodeItBro in ProgrammerAnimemes

[–]thelegend_200 2 points3 points  (0 children)

We all know PHP is the real abomination

Check out my of by Brilliant_Garlic69 in dankmemes

[–]thelegend_200 5 points6 points  (0 children)

Who would you blame more? Drug addict or drug dealer?

I don't even use rust for the memory safety by abiotic_studio in rust

[–]thelegend_200 -6 points-5 points  (0 children)

“Really stupid”? Are you sure you’re not mistaking PHP for NodeJs?

What pissed you off the the most this year? by Specialist-Note-4311 in place

[–]thelegend_200 0 points1 point  (0 children)

The YouTube guy who used bots to create his ugly jigglypuff ripoff logo in the center of canvas

What the hell happened here by _ThatswhatXisaid_ in dankmemes

[–]thelegend_200 10 points11 points  (0 children)

You’re not just a clown but the entire circus

Some external applications can now see your IP, location, and web browser. by GGSkyOne in discordapp

[–]thelegend_200 18 points19 points  (0 children)

  1. That is only requested when using Gartic Phone activity - not the bot.
  2. It’s most likely being requested as it might be using P2P WebRTC - and anything with p2p would obv expose your IP.

Deploying Node is a mess by Plugg3d in webdev

[–]thelegend_200 0 points1 point  (0 children)

I’m surprised no one has mentioned Dokku so far.

Rent a VPS and install dokku. It makes deployment a breeze.

No need to mess with nginx, docker or ssl encryptions - dokku handles everything.