#๐Ÿ”’ Help im new

13 messages ยท Page 1 of 1 (latest)

fallow cosmosBOT
#

@sinful rover

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.

outer marten
#

like a discord bot?

#

Probably something like this. ```py
TARGET_WORD = re.compile(r"\bhello\b")

hello_count = 0

@bot.on_event
async def on_message(message: Message):
global hello_count
if TARGET_WORD.match(message.content):
hello_count += 1

#

\b in regex means word boundary, so new lines, punctuation, spaces, etc

high bear
#

well, depends

outer marten
#

probably

vernal mason
#

"hears"

#

if you don't know how to program long story short most of the ways to do it are going to be hard

#

usually it involved signing up for an online service that does that, and then hooking into their api via python to use it

#

there are other ways but if you want to get a taste, google "python voice recognition" and you will find a lot of info

fallow cosmosBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, 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.