#πŸ”’ Can someone help me with my project (chatbot), because im a begginer?

25 messages Β· Page 1 of 1 (latest)

prime raft
#

i need help

inner bloomBOT
#

@prime raft

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

half lodge
prime raft
#

I know the basics and I started 1 week ago

half lodge
prime raft
#

Yes but something veri basic

#

Very*

half lodge
prime raft
#

Only with print, input and one if

half lodge
#

yea thats definitely not enough

#

Do you at least know how to write a function and a class? @prime raft

prime raft
#

A function yes, but what is class?

half lodge
#

A class allows you to put multiple functions into one and be able to reuse it, like an entity or an object that has the properties and functions that make sense to it...

#

Since you had to ask what a class is, you'll definitely need to follow a proper tutorial

#

!learn from one of the recommended resource below πŸ‘‡

inner bloomBOT
#
Go-to beginner resources

Here are the top free resources we recommend for people who are new to programming:

For a full, curated list of educational resources we recommend, please see our resources page!

half lodge
#

so in your case, you could have a class about your chatbot that handles and refers queries in a session... something like:

class Chatbot:
    def __init__(self, name):
        self.name = name

    def on_message(self, message):
        "if message is from user respond"
        if message.user != self:
            return respond("Hi")

Something like that (which this code doesn't work btw but its a simplified rough idea)

prime raft
#

Ohh ok, thx

#

I'm gonna learn more for class and later this day I will text here again for more

#

See you then

velvet fractal
#

Yoo close the channel

#

Type:β€š!close'

#

Without β€šβ€™

inner bloomBOT
#
Python help channel closed for inactivity

This help channel has been closed. Feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.