Just found your channel. Watched the AI SaaS video and am now on the portfolio site for beginners. The level of detail you put into explaining things in your videos is just right. Please keep making content, thanks a lot.
😅 Thanks for your kind works. It is a challenge for me to balance the content to be fast and simple, but still comprehensive enough to learn from, so hearing that it works for you is very encouraging!
Thank you! this was great, half the battle with things like this is getting the thing to run to begin with, so you've gotten me that far, much better tutorial than all the rest I've come across.
Great tutorial. I looked through a lot of them, and while they worked, none of them really explained why they did stuff. They just wrote code and expected to follow.
This was exactly what I needed. Got it running in 10 minutes and coded what I needed. My one issue, and I know it isn't part of this is how to limit the bot to one channel! I did start it as administrator to test. Removed it and readded it with just manage and send messages in text permissions. Google is not helping and I am stumped. I don't want everyone to use my / commands! Just a specific channel. Again great tutorial, it did what it was supposed to! Thank you!
Thank you! To solve your problem, here is one solution I found online: > The easiest way to do this is not actually via code but via permissions on the server. On your server you should find a role with the same name as your bot, whose permissions (including send messages) you can change for seperate channels. Otherwise, I guess you can do it hackily as well by using an if/else statement in the bot logic itself to only respond if the channel ID of the message is the one you want the bot to operate in.
Justo lo que necesitaba, me gusta como explica todo mjuy bien, aunque es en ingles es un reto tambien porque estoy aprendiendo asi que es un Plus. Muchas gracias. Una suscriptora mas 😊
jk make sure when you declare your "!" thing theres no spaces like "! " or " !" this saved me hours and worked after i noticed i had a space of some sort
When you download python you also download pip. So if pip is not recognized either you did not install python correctly or PATH was not created correctly and your terminal is not recognizing the PIP file. Go to the terminal and type the comand python it should grab your python file. Let me know what it says.
when I want to install the 'pip install discord.py' error comes in and it says "which is required to install pyproject.toml-based projects" how do I make it install ?
i copied text by text to just have the bot print hello on the discord and i keep running into issues with on ready await channel.send Attribute error with python. Any suggestions?
Thanks for this video bro it's working with no issues and I got some idea about it once again thank you it's very useful to me ❤❤❤ but can you help me with in 20:41 i'm still can't figure it out to print the timer
@@pixegami Hey thanks for your replay , so im a Beginner for python i cannot figure out the ' end session's end timer like human readable time and why are you using timedelta(seconds = duration)
Hmm, it could be because you might be using a newer version of the Discord library than what I used in the video, or you have it pointed to the wrong Python environment.
hey great video. i have a question. If I have code written already, how do I implement that code to work with the discord bot? For example, if I have a script written to return output for a certain input, how do I implement this to the discord bot so that if i place an input to the discord channel, it will output the values (from my script I created)
No idea! I looked it up and found this: @bot.event async def on_command_error(ctx, error): await ctx.send(f"An error occured: {str(error)}") From stackoverflow.com/questions/62771154/discord-py-rewrite-sending-an-error-message-when-there-is-an-unknown-command-or
I can log in with client and see my user name (bot #...), but I can't see any channel at all. I can see the bot in server settings though. Do you maybe know why?
Hmm, is it possible the Discord API version changed? Compare the version of Discord to the one being used in the video (although I'm not sure if I actually show it in there)...
It never prints the text when I run it! Edit: so it turns out it has to named 'on_ready' lmao "which thing has to be named on_ready?": Watch the tutorial, if you see something named "on_ready", don't change it, otherwise, it fails.
i uhh deleted the code now but i was getting the same error with sending emails in python and i created an unverified context using the ssl lib. we don't use that here so i probably have no way to fix it and i honestly dont really wanna make a bot anymore. thanks for the attention to people with errors i really appreciate it! i'll check out your other videos/tutorials.
it says for me bot = commands.Bot(command_prefix="/", intents=discord.intents.all()) AttributeError: module 'discord' has no attribute 'intents' how do I fix this
I think you might be using a different discord.py version than the one used in the tutorial. You'd either have to roll back to the same version, for find the equivalent to "discord.intents.all()" in your current library version.
Ah, looks like you might not have the discord.py library installed yet. Try running 'pip install discord.py' in your command prompt or terminal. If you're still stuck, check out the GitHub repo for the full setup instructions: github.com/pixegami/simple-discord-bot. Let me know if that helps!
Just found your channel. Watched the AI SaaS video and am now on the portfolio site for beginners. The level of detail you put into explaining things in your videos is just right. Please keep making content, thanks a lot.
😅 Thanks for your kind works. It is a challenge for me to balance the content to be fast and simple, but still comprehensive enough to learn from, so hearing that it works for you is very encouraging!
@@pixegami you're a great teacher please continue this course
the only tutorial that actually works, thanks a ton!
Glad it helped!
you are awesome, this is the only one tutorial that works for me
Glad to hear that!
the first video i saw on your channel your skills with discord really impressed me
Best tutorial!❤
Thank you! this was great, half the battle with things like this is getting the thing to run to begin with, so you've gotten me that far, much better tutorial than all the rest I've come across.
Awesome! Glad to hear it was useful :)
Great tutorial! Thanks a lot!
You're welcome!
Great tutorial. I looked through a lot of them, and while they worked, none of them really explained why they did stuff. They just wrote code and expected to follow.
Thanks for that feedback! It's something I actively try to achieve in my tutorials, so I'm glad it's coming across.
This helped so much to get started
Glad to hear it. Thank you!
This was exactly what I needed. Got it running in 10 minutes and coded what I needed. My one issue, and I know it isn't part of this is how to limit the bot to one channel! I did start it as administrator to test. Removed it and readded it with just manage and send messages in text permissions. Google is not helping and I am stumped. I don't want everyone to use my / commands! Just a specific channel.
Again great tutorial, it did what it was supposed to! Thank you!
Thank you! To solve your problem, here is one solution I found online:
> The easiest way to do this is not actually via code but via permissions on the server. On your server you should find a role with the same name as your bot, whose permissions (including send messages) you can change for seperate channels.
Otherwise, I guess you can do it hackily as well by using an if/else statement in the bot logic itself to only respond if the channel ID of the message is the one you want the bot to operate in.
Justo lo que necesitaba, me gusta como explica todo mjuy bien, aunque es en ingles es un reto tambien porque estoy aprendiendo asi que es un Plus. Muchas gracias. Una suscriptora mas 😊
Thank you! I'm glad you enjoyed it. I hope you were able to understand the video :)
hey when I tried doing the command it would not respond 14:37
relatable
same
jk make sure when you declare your "!" thing theres no spaces like "! " or " !" this saved me hours and worked after i noticed i had a space of some sort
it says the term pip isn't recognized
When you download python you also download pip. So if pip is not recognized either you did not install python correctly or PATH was not created correctly and your terminal is not recognizing the PIP file. Go to the terminal and type the comand python it should grab your python file. Let me know what it says.
@@MrJerrylikes it opens a microsoft store page
Thank you for the awesome video!!
You're welcome!
when I want to install the 'pip install discord.py' error comes in and it says "which is required to install pyproject.toml-based projects" how do I make it install ?
Exactly
i copied text by text to just have the bot print hello on the discord and i keep running into issues with on ready await channel.send Attribute error with python. Any suggestions?
Hmm, I checked the code recently and it was still working. What is the exact error and what version of discord.py are you using?
Whats the fix?????
Thank you🤩
You’re welcome 😊
Thanks for this video bro it's working with no issues and I got some idea about it once again thank you it's very useful to me ❤❤❤ but can you help me with in 20:41 i'm still can't figure it out to print the timer
Thanks! Glad it's useful. What issue are you having with printing out the timer?
@@pixegami Hey thanks for your replay , so im a Beginner for python i cannot figure out the ' end session's end timer like human readable time and why are you using timedelta(seconds = duration)
my bot won't work and the error message has a problem with the async. do u know how to fix that?
Sorry I'm not sure, it's been a quite since I worked on this. What's the error message say exactly?
@@pixegamithis was the error message
File "bot.py", line 11
async def on_ready():
^
SyntaxError: invalid syntax
do u know what it means? I'm clueless
@@dogereacts1271What version of python were you using?
@@Unpluggedx89 the newest
What extensions are you using while coding this?
Which exintension are u use for complate code
GitHub CoPilot
THANKS A LOT MAN, YOU WERE OF GREAT HELP!!!!
You're welcome!
great video, direct and precise, I just want to ask you what happens if I want to give each user an ID, what would the logic be?
How can I make my Discord bot only appear in one channel and not work in other channels?
You can add a condition into the functions so it only does things in a specific channel:
"if message.channel.id == YOUR_CHANNEL_ID: ..."
Which add-on do you use for auto generating code?
GitHub Copilot. I actually talk about it in this video: ruclips.net/video/tG8PPne7ef0/видео.html
When I start a study session, the time is 5 hours later than intended. What is the fix for that?
It probably uses the UTC time from the machine your bot is running on. What’s the timezone set on your system?
You might have to set it to local time.
It doesnt run for me and It cant resolve discord dot ext
Hmm, it could be because you might be using a newer version of the Discord library than what I used in the video, or you have it pointed to the wrong Python environment.
how do you do it in all channels?
So helpful :D this tutorial is perfect bc i need a bot that runs a command every 24 hrs bc im lazy lol
do you know how to get the prizepick projections?
Thank for this... very useful, do you have enything about on discord bot whit cli AWC ?
Not at the moment, but I plan to do more Discord videos in the future.
my bot wont come online, ive check my code and token multipul times (im on mac)
What error do you see?
hey great video. i have a question. If I have code written already, how do I implement that code to work with the discord bot? For example, if I have a script written to return output for a certain input, how do I implement this to the discord bot so that if i place an input to the discord channel, it will output the values (from my script I created)
Is there a way to have a catch all async def? Like if someone types /bot
No idea! I looked it up and found this:
@bot.event
async def on_command_error(ctx, error):
await ctx.send(f"An error occured: {str(error)}")
From stackoverflow.com/questions/62771154/discord-py-rewrite-sending-an-error-message-when-there-is-an-unknown-command-or
why does it show me
[Done] exited with code=0 in 0.092 seconds
after i do client.run(token) instead of showing my bot online
If you did exactly as he did, you should use bot.run(token) instead of client.
I can log in with client and see my user name (bot #...), but I can't see any channel at all. I can see the bot in server settings though. Do you maybe know why?
which IDE is he using ?
im having this problem:
AttributeError: 'NoneType' object has no attribute 'send'
What's the full stack trace? Did you initialize your bot properly?
@@pixegami no its ok now
@@parrrkkkk What did udo
@@maheerhuq6708 i posted this a year ago
I need help can i join your dc pls gimme link
Sorry I don't have a public Discord channel yet. I'll post an update if I do get around to making one.
you are a god
Any idea why commands doesnt work with my bot? It doesnt recognize that i typed $hello
Hmm, is it possible the Discord API version changed? Compare the version of Discord to the one being used in the video (although I'm not sure if I actually show it in there)...
@@pixegami nvm I just found out that .bot.event on_message() ovverite commands 😅
Why that's not work on manjaro?
No idea... What error do you see?
@@pixegami no error, just not work.
@@pixegami he just don't making anything when typing command.
It never prints the text when I run it!
Edit:
so it turns out it has to named 'on_ready' lmao
"which thing has to be named on_ready?":
Watch the tutorial, if you see something named "on_ready", don't change it, otherwise, it fails.
Thanks for sharing the solution :)
@@pixegami Np :3
could you elaborate on this? which thing has to be named on_ready?
@@Meowicat I have updated my comment to answer your question
it doesnt work bruh. apparently some "ssl certificate error"
What's the full error?
i uhh deleted the code now but i was getting the same error with sending emails in python and i created an unverified context using the ssl lib. we don't use that here so i probably have no way to fix it and i honestly dont really wanna make a bot anymore. thanks for the attention to people with errors i really appreciate it! i'll check out your other videos/tutorials.
does this work with pycharm?
Yes
Please continue this cource! Also please tell us everything from Discord api documentation and all of the bot commands available there please.
i need pysilon discord
it says for me
bot = commands.Bot(command_prefix="/", intents=discord.intents.all())
AttributeError: module 'discord' has no attribute 'intents'
how do I fix this
I think you might be using a different discord.py version than the one used in the tutorial. You'd either have to roll back to the same version, for find the equivalent to "discord.intents.all()" in your current library version.
im trying this tutorial but when i ise the command, theres no response. the async function doesnt even run.
It's possible that the Discord package may have changed or been updated since the video was made :(
hey, it says that there is not module named discord. can you help?
nevermind i got it working
Ah, looks like you might not have the discord.py library installed yet. Try running 'pip install discord.py' in your command prompt or terminal. If you're still stuck, check out the GitHub repo for the full setup instructions: github.com/pixegami/simple-discord-bot. Let me know if that helps!