#π hi
104 messages Β· Page 1 of 1 (latest)
@dusky heart
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.
What youtube video?
Looking to create a Discord Bot for your server? Well then, this is the first video in my new series in where I should you how to create a fully functioning bot in Python for your server.
In this video, I go over how to setup your discord bot on your server and how to make a basic command.
βΊPlease consider joining my discord server: https://...
this
i'm currently at 13:52
but he's making a different bot compared to me but i want it to show an attack on titan character when they say Aot pull (as if they're pulling cards from a deck)
That tutorial is years outdated
what do you know about python
i'm new to it
What library are you using?
do you have any new ones that i can watch? cause i just started it
you really shouldn't make discord bot as a first project
what do you mean libary? like the screenshot i sent?
The library you are using to wrap the discord api
i'm decidated to it, i believe i can learn it π
oh i am using visual studio code
thats what the youtube video said for me to use
That is IDE, not library
did you pip install anything?
i don't understand all these code words sorry π what does that mean?
i installed visual studio code and python
that's all i installed
IDE - The code editor
Package/Library - A external part of code that you import and use, which usually require you install them
ohh okay thank you so much
you will need to py -m pip install discord.py
what do i put that in? or do i install it?
command prompt
i already did it
vscode has a terminal at the bottom somewhere
ok, so you currently basically not implemented anything
do you want to ignore the discord bot logic
and work on the whatever titan attack thing
it's gonna be a discord bot so don't i need to know both?
but idk if you guys can understand what i mean so thats what i mean lol π
i didnt mean that in a mean way btw
we would unlikely be able teach you the entire thing
that's okay, i could probably teach myself/watch tutorials
i'm just confused as like
and making a discord bot that doesn't have whatever that logic mean nothing
no it's gonna be more in depth
dont watch tutorials, no video tutorials are good for discord bots
but that's just my first command
how do i learn then?
Reading docs, looking at examples, reading tutorials that are recommended by members of the community of the discord bot library you are using.
i've seen some examples of the discord bots i wanna make but i wanna do it a different anime, and docs? how do i get those? and the visual studio is the library i'm using right? how do i get tutorials from them guys? is there like a discord server that can help me more or are you not sure?
If you plan to continue using discord.py they have a support server
is discord.py just for bots on discord so they can help me right?
From that, what did you learnt about python or discord.py
It could either be surprising large amount of things (which included but not explained) or basically nothing
yes
oh okay thank you
okay thank you, do you know the link of it?
No, I am asking you a question
oh
sorry i didn't understand, i just want to learn more about it in order to create my bot that's all
Well, that seem to me that you didn't learn anything in particular from there, so I think continuing on the same path wouldn't be much helpful imo
i mean i did learn some things
so what did you learn?
i learnt how to do commands and how to put a prefix
i'm just confused as to how i want to do the command lol
Which is specifically what I asked you to focus on and ignore the discord bot part logic...
#1392973565279735839 message
i apologise, english isn't my first language lol π€£
but okay no worries but i'm still confused
I think the idea is that, whatever your bot does, making it work with Discord is the easy part
Ok, so, first, try explain a bit about the card, and the titan stuff
yeah
so the bot is going to perform an action, what does it actually take to perform that action? what does it do, and what data will it show the user?
if you can answer that question, you can integrate with any chatbot system, not just discord
ohhh
to you?
Just basically everyone here
okay
(i haven't made any of these commands it's just a idea of what i want to do) basically one of the characters is called Eren Jaeger and he's a titan shifter (which means he can turn into a titan) but they can pull him as just himself, and pulling his titan will like be a harder difficulty but i guess that doesn't matter, so if they pull him as his normal self and have never pulled him before, then they can just either add him to the team and fight with him, they can upgrade him to make him get stronger, and yk how normal fighting games work etc. but i want it to pop up an image when they pull him too so kind of like an embed. i can also show a photo of how i want it to look, if that will help
what is pulling and where does pulling happen? is this in a game?
so for example they'll be certain channels in a server (discord) and they can do like aot pull (and it gives them a random character of a rarity but the higher rarites, the stronger people for example will be harder to pull)
and pulling is like rolling a dice basically
ah I see
it sounds like you have a program that is going to wait for an event to happen, and then produce specific output once that event occurs
do you know how to generate a random number
it wouldn't be numbers but on the coding programming? no
yeah basically
i can show you what i've done so far
hm so I'm not sure what level you are with python, but assuming you're a complete beginner
yeah i am
I'm guessing the reason this was asked was to prompt you to write a really simple python script that reacts to different random numbers
yep
say, write a program that simulates rolling a 6-sided dice and prints out to the user if they rolled a 6, but do nothing otherwise
that isn't exactly what your bot will have to do
but it will have to do the general idea of reacting to some event
and this simple example will give you a good place to start learning that logic
okay no worries thank you
It might seem really far off from what you want, but it might be possible to slowly rework this simple program to make it into a discord bot script
okay thank you that means alot :)
:warning: The owner of this post is no longer in the server.
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.