#πŸ”’ i want to make discord bot that calculate itself

27 messages Β· Page 1 of 1 (latest)

peak knoll
#

i want to make but i have no idea how is sonething can help me? for example guide something

shrewd runeBOT
#

@peak knoll

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.

main robin
#

So first off, before you can make any discord bot, you need to learn Python. Check out these beginner resources

#

!learn

shrewd runeBOT
#
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!

main robin
#

Making a discord bot is an advanced topic and you need to learn to walk before you can run. Choose any one of those resources and work your way through it.

#

Along the way, feel free to create help threads (like you just did) to get help with any concepts which you don't understand.

#

Only after you master the fundamentals can you move on to creating discord bots, which require you to understand advanced topics like asynchronous programming.

glad mural
peak knoll
#

i just start to learned this fast few days and icnt understand at all

frozen cosmos
outer fable
#

Yep

#

Learn until Oop then I would say your ready to build a discord bot

#

And decorators as well for functions

#

Libraries etc

stone swan
#

Sorry, what do you mean by "calculate itself"

rapid breach
# peak knoll i just start to learned this fast few days and icnt understand at all

hey bro , building a discord bot is actually a great idea since you want a calculator, you're basically just going to combine a simple discord bot connection with basic python math.
here is a quick step-by-step roadmap to get you started from absolute zero:

  1. getting the bot's "ID card": first, search for the Discord Developer Portal on google. you create a new "application" there and add a bot to it. it will give you a secret "Token" (think of this like the bot's login password. never share it!).
  2. install the tools: you need a library that lets your python code talk to discord servers. open your terminal/command prompt and type: pip install discord.py
  3. the starter code: you'll write a short python script that uses that discord.py library and your secret Token just to bring the bot online.
  4. the calculator logic: once it's online, you just write a command (like !add 5 10). your python code grabs those two numbers, does the math, and sends the answer back as a message.
frozen cosmos
rapid breach
outer fable
rapid breach
outer fable
#

So did I but I wouldn't write that much

frozen cosmos
rapid breach
#

Hmm

shrewd runeBOT
#
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.