Been wanting this FOREVER. I love you Max, I was here since like 1k, its crazy how much you've grown, keep up the grind!
@_terminalunar_3 жыл бұрын
this isnt clickbait and time-wasting it actually works
@Vic086543 жыл бұрын
Really good tutorial! Keep it up!
@KINGIGNITEyt3 жыл бұрын
True!
@yumeganaii3 жыл бұрын
Your coding speed is fast af. I have problems keeping up lol. But thanks for this amazing tutorial!
@FazpyDev3 жыл бұрын
This is EXACTLY what I've been looking for! Thank you so much!
@rajaconstantine Жыл бұрын
Yep true ❤
@WilliamMcDowell_3 жыл бұрын
i have a friend that is a mod In the maxcodes server and suggested This Thanks Your a real life saver and man said no to money
@_mgs8523 жыл бұрын
I literally spent 2 hours doing this, it gave me an error, I deleted everything, and then I saw that I just forgot to put the password in the cluster, shit
@notdemonix3 жыл бұрын
i did it within 30 mins lol
@ignitegaming10523 жыл бұрын
TY for wishing us luck :) I REALLY needed it! I am not even done yet!
@penguin1513 жыл бұрын
How long did it take and what would you rate it???
@ignitegaming10523 жыл бұрын
@@penguin151 Its an AWESOME tutorial and I would rate it 9/10
@pillowrabbit83243 жыл бұрын
@@ignitegaming1052 can i have the code, i spent two hours copying everything and now the !leaderboard and !rank just dont response with anything and have no errors
@shaanhaddad85183 жыл бұрын
@@penguin151 Its IGNITE GAMINGs alt here and I didn't complete it but it does work very well and its even in his discord server!
@shaanhaddad85183 жыл бұрын
@@pillowrabbit8324 F I dont have all the code that I typed anymore because my PC fried
@ACodingWoof3 жыл бұрын
Really good tutorial! But i would like if you could increase the font size while recording please
@noeljacob92293 жыл бұрын
@Max Codez for adding more than one channel for the bot commands and for the talking channels... what should i seperate it by? comma or new parenthesis?
@xxxyzMarcel2 жыл бұрын
idk what are parenthesis but u seperate it with commas, it should lok like ["id","id"]
@freebie.3 жыл бұрын
Wheres your discord server? I'm having trouble with the code 🥺 My rank command is not doing anything but everything else works. Anyone got a discord invite?
@chronicalcodes13683 жыл бұрын
Hey, When I run this code I get this error? File "c:\Users\Admin\Desktop\discordpybot\main.py", line 18, in cogs = [levelsys.py] NameError: name 'levelsys' is not defined
@MarsterMikkel3 жыл бұрын
Search up "How cogs work discord.py" Since cogs = [levelsys.py] Means hes using a cog. I think that you are just scripting all this in "Main.py" You need to make a cog for this. Sorry for my bad English btw.
@ignitegaming10523 жыл бұрын
This video is 12 mins and it took me 6 hours to do it myself! #I-AM-DED
@gamerduck_58683 жыл бұрын
bruh it took only like 1 hr to make it
@ignitegaming10523 жыл бұрын
@@gamerduck_5868 Bruh I am new to this and it failed like 3 times
@notdemonix3 жыл бұрын
i did it within 30 mins lol
@CTahmid3 жыл бұрын
@@CaptAngryEyes do u know any tutorials that have that
@grimm51193 жыл бұрын
@@CaptAngryEyes that's shit! json is not a database. its for static variables stop using iiiittt
@DeletedAccount3853 жыл бұрын
what is the code? I have an errors
@Qlankz3 жыл бұрын
I keep getting an error every time i run saying connection failed or connection cloesed.
@aloyzakrasinskiene52963 жыл бұрын
I am getting authentication failed error. Helppp
@xchrisdw3 жыл бұрын
Max I need help. Do you know how to get pycharm to function inside a newer verison of python? I recently went from 3.8 to 3.9 and pycharm doesn't explain how to change any of that.
@leiwnt3 жыл бұрын
My recommendation is to continue using 3.8, as support for 3.9 is not widely available yet, and you will have the least issues not using the newest version.
@mairochondria3 жыл бұрын
Awesome tutorial man! I got a question with the boxes you used for the progress bar? Are those emojis?
@CTahmid3 жыл бұрын
yes
@shiawase58363 жыл бұрын
Any for discord.js?
@AbhigyanTrips3 жыл бұрын
Guys, I can't seem to figure this out. I have my whole code ready. But every time I go and use the command, it shows: Ignoring exception in command None: discord.ext.commands.errors.CommandNotFound: Command "rank" is not found WHAT DO I DO?
@theultimatecoder34333 жыл бұрын
Hi bro
@niku37833 жыл бұрын
have the same
@niku37833 жыл бұрын
so you need to mark the whole code of the command and the code from leaderboard and then press tab
@twees52383 жыл бұрын
i have the same problem
@evee73 жыл бұрын
help me line 3, in import levelsys
@drrick66843 жыл бұрын
Do u have any tutorial about telegram bots?
@ragingultimate10033 жыл бұрын
When I type to commands into Discord, the console responds with 'command not found'. Does anyone know why and how to fix it?
@twees52383 жыл бұрын
i have the same problem
@Junkhead103 жыл бұрын
The rank command does not display ur level so add this to the embed message embed.add_field(name='Level', value=f'{lvl}', inline=True) then it will
@3body2342 жыл бұрын
Thanksssss ❤️❤️❤️❤️
@seizoux3 жыл бұрын
AttributeError: module 'levelsys' has no attribute 'setup' fix?
@monkshee3 жыл бұрын
same
@Anish-sl1oj3 жыл бұрын
Same
@vikranth39243 жыл бұрын
do u have multiple cogs ?
@seizoux3 жыл бұрын
@@vikranth3924 yes
@vikranth39243 жыл бұрын
@@seizoux So in the beginning of ur code write this from glob import glob Cogs = [path.split("\\")[-1][:-3] for path in glob("./cogs/*.py")] - change the path @client.command() async def load(ctx, extension): client.load_extension(f"cogs.{extension}") for filename in os.listdir("./cogs"): if filename.endswith(".py"): client.load_extension(f"cogs.{filename[:-3]}") - this in ur code Try this if any error msg me
@KilluaZoldyck-ix2xx3 жыл бұрын
Hello, when I try to run the code with main.py, it gives me an error saying levelsys module not detected. How can I fix that ?
@georgegray25493 жыл бұрын
import levelsys
@ZEF1ROK3 жыл бұрын
lmao
@d3mon1x463 жыл бұрын
BRUV why you didnt used motor engine. Now i struggle to make it work on motor
@storeyedop52473 жыл бұрын
Since here when ur first video came out so gimme that big boi heart
@ngtfury79463 жыл бұрын
nice video! idk what is the problem everything works fine , it adds id, xp everything to mongo db but the bot will not send message in level up and also while using rank command idk why, pls help
@rurappals2 жыл бұрын
I'm sad, when I wrote async def on_message(self): and async def on_message(self, message): The "self" won't purple up, idk it's grave ...
@hackertrackernick7663 жыл бұрын
Nice vid bro, did you upload this vid on github by any chance?
@hackertrackernick7663 жыл бұрын
@@maxcodez ee~ hope you reach it and I programmed it on my own after watching your vid. Amazing vid which is very easy to comprehend even if you know basics
@RLSova3 жыл бұрын
he has this video on 2x speed due to it's length. It is not him with unhuman typing
@mile.97683 жыл бұрын
@@maxcodez Rookie numbers
@SimplyCode3 жыл бұрын
@@maxcodez meh, I type at like 500,000,000,000,000,000,000,000wpm. I finished a whole book in 2 seconds
@gelogabdaet17463 жыл бұрын
Where is the link for your discord server, I had trouble with this tutorial
@rafinonato3 жыл бұрын
The leaderboard only outputs one user, or an exception occurs and there are no outputs. How can I fix this?
@Acem88873 жыл бұрын
You didnt put the discord server link in desc. Can i have the link please? I really need help there is something bizarre happening with my code.
@tmrockstar9993 жыл бұрын
Hi, I need this bot to a public one so i need to make it be able to chat in all CHANNELS. So i shld not put in the first 4 lines of code after import commands in levelsys right?
@scoopydevy3 жыл бұрын
yup
@scoopydevy3 жыл бұрын
i mean the channel one isnt required the rest are optional
@manofwarfare37543 жыл бұрын
How would I go about making a levelling system where people with certain roles all participate towards the one level but people without that role cannot?
@emmanuelsmiju57813 жыл бұрын
Where's the discord server link? I need some help
@_mgs8523 жыл бұрын
the rank command is not working
@freebie.3 жыл бұрын
same
@szymtest3 жыл бұрын
whether to make a video about the server administration panel with dasboard in discord.py?
@louxa54093 жыл бұрын
I NEED HELP. when i type !rank nothing happen. no error nothing... haaaaaaaaa
@pillowrabbit83243 жыл бұрын
mee too
@leftoverdefault93783 жыл бұрын
The Message On Level Up And Adding Roles Doesn't Work For Me... Send Help
@gggggf94763 жыл бұрын
Can you make a video about instagram bot account creator. It would get too much clicks. thnx
@adaja_3 жыл бұрын
Are .json databases also sufficient for this?
@themicraft3 жыл бұрын
.json isnt really a database
@adaja_3 жыл бұрын
@@maxcodez would it work sufficient enough for small services tho?
@evee73 жыл бұрын
yes i fix it but it only work ?help ?rank it dont show anything
@drdimension49433 жыл бұрын
It works. It doesn't waste your time. The only thing here is that people can spam to get levels. Can you make a tutorial on how to make it so that you only get xp every minute
@d3athofseasons3 жыл бұрын
How can I make this not gain xp from typing commands?
@mile.97683 жыл бұрын
make a list of commands and if the message includes a command then dont give them xp
@muhammadehtisham11463 жыл бұрын
hey hru do you think you can make another part to this tutorial where you enhance the levelling and do things so people can change what the notification is when someone levels up and also change the channel where the message shows up it would be much appreciated
@justbyvarex71553 жыл бұрын
Heyy i hope u still answer Comments to this :So ive made the bot, it accepts commands and executes them, BUT whenever i type in one of the channels, that is supposed to give me EXP, i get alot of error messages in the bot. The first one saying: Ignoring exception in on_message At the end it also says: pymongo.errors.WriteError: db already exists with different case already have: [Discord] trying to create [discord], full error: {'index': 0, 'code': 13297, 'errmsg': 'db already exists with different case already have: [Discord] trying to create [discord]'} I have no clue what causes this, ive been on here for 2 hours now trying to fix the problem - but i have absolutely no clue why its doing this, i hope u can maybe help!
@Noon693 жыл бұрын
Traceback (most recent call last): File "C:\Users\User1\PycharmProjects\pythonProject\main.py", line 3, in import levelsys File "C:\Users\User1\PycharmProjects\pythonProject\levelsys.py", line 53 lvl += 1 ^ IndentationError: unindent does not match any outer indentation level those lights up when i try to run it, any help?...
@mile.97683 жыл бұрын
your indents are wrong
@mujtabanaveed35833 жыл бұрын
So how do i make it so the xp is given in every channel do i just not add the part which limits the ids?
@Salad_04203 жыл бұрын
I have a problem with it,it says: Traceback (most recent call last): File “Main.py”, line 5, in import levelsys File ”levelsys.py”, line 38 lvl = 0 SyntaxError: invalid syntax By the way I am using replit
@noeljacob92293 жыл бұрын
Max... could you please send a link to your discord server... I have a lot of doubts
@blitzio76883 жыл бұрын
its deleted but he will soon make it when he raches 25k subs
@DeathItself3 жыл бұрын
@@blitzio7688 he is at 25k :0
@blitzio76883 жыл бұрын
@@DeathItself well he will make a server if he wants to, arctricity told he will make server when he reached 25k
@KINGIGNITEyt3 жыл бұрын
OMG MAX LOVED MY COMMENT * I'M FREAKING OUT! *
@_terminalunar_3 жыл бұрын
fun fact: editing a comment makes you cry
@KINGIGNITEyt3 жыл бұрын
@@maxcodez OMG REEEE! WOW! LETS GOOOOO! I AM HYPERVENTILATING!
@cslkoga33483 жыл бұрын
There is always AttributeError: 'Client' object has no attribute 'add_cog'
@stevenbarclay60213 жыл бұрын
@Sheijian what does that mean
@veddnt3 жыл бұрын
it is not working in mine it gives an error that says this command doesn't exist :c Help mee ;-;
@DeathItself3 жыл бұрын
could i have discord server link? Everything seems fine with my bot in the code, but what is shows in discord is very wrong
@juliancanfaulk50703 жыл бұрын
Would it work if i still made it in my original bot and not make a whole new one
@mitrubosscox70183 жыл бұрын
can somebody help me, my discord bot is offline and i dont know how to turn it on, and what about the database?
@sankalpsalve42003 жыл бұрын
Failed to build multidict yarl how can i fix this while installing discord
@krishgarg28063 жыл бұрын
i got that too. You have to use python 3.8 to install and use it. It doesn't work with 3.9 yet. After installing python 3.8, run this command in the terminal: "path of python 3.8" -m pip install discord
@sankalpsalve42003 жыл бұрын
@@krishgarg2806 thanks
@JosueR0183 жыл бұрын
What python editor you use ?
@sanjaicyber78413 жыл бұрын
you know that if you see his video fully
@_terminalunar_3 жыл бұрын
@@sanjaicyber7841 you would've helped by saying pycharm
@sanjaicyber78413 жыл бұрын
@@_terminalunar_ then what's the point of making this vdo I would have said If max didn't said it's name he suggests us to use pycharm in every one of his vdo
@memersoda3 жыл бұрын
annyone can give me the code? i am getting shit ton of errors and idk why tho
@Rexxicon3 жыл бұрын
What do I do if free options for Mongo don’t show up, there’s no free options
@nashieartz3 жыл бұрын
Would it be possible to get the source code in github or anywhere else? Thanks
@onk_ar23 жыл бұрын
Somehow, mongo database have problem with me and it don't want to connect to my code, so anybody knows how to do it with json files?
@els4.sdd13 жыл бұрын
i cant get the roles or the message on level up to work... help
@durammx3 жыл бұрын
Great tut although the rankings is not showing properly. Also I want to adapt image using PIL. Is it possible?
@durammx3 жыл бұрын
@@maxcodez I did the code on PIL, still needs to connect with your code.
@durammx3 жыл бұрын
@@maxcodez Done! where do I send you? Still need to fix the leaderboard.
@karson90183 жыл бұрын
when i try add my bot to my server it says integration requires code grant.
@ladybug27503 жыл бұрын
i need hlep this didn't work for me i followed all steps and codes properly, now it won't run can i get some help somewhere
@drpanda68093 жыл бұрын
hi i keep getting these three erros when i run the code line 3, in import levelsys line 15, in class levelsys(commands.Cog): line 80, in levelsys @commands.commad() AttributeError: module 'discord.ext.commands' has no attribute 'commad' i have no idea what ive done wrong or how to fix them
@crisis45183 жыл бұрын
Yo dude this didn't work out for me, instead, I got a very long error. Max, can u pls help me out here?
@BakaScarlet3 жыл бұрын
The leaderboard command doesn't say anything besides "Rankings:" The rank command doesn't apply the blue squares, instead it applies white squares beneath a full 20 row of white squares Also you forgot to add another field for the Level at the Rank Command
@samurii54843 жыл бұрын
I added the field for the Level. But did you managed to fix the progress bar?
@BakaScarlet3 жыл бұрын
@@samurii5484 Nope i tried everything but it doesn't seem to register the blue squares.
@durkai49003 жыл бұрын
how can i activate my bot 7/24
@krzem3 жыл бұрын
only 7 hours and 24 days,,
@sarthakjain1703 жыл бұрын
host it on a cloud or on a raspberrypi
@durkai49003 жыл бұрын
@@sarthakjain170 thx
@predopogdois3 жыл бұрын
you can use Heroku, it provides 24/7 30days for free
@durkai49003 жыл бұрын
@@predopogdois thx
@svenborgardt55993 жыл бұрын
NoneType' object has no attribute 'id' in add_roles
@justhypix3 жыл бұрын
Does level rewards stack or no?
@oli.bleach3 жыл бұрын
hey when i run the bot it says that module 'levelsys' has no attribute 'setup' could u please help
@oli.bleach3 жыл бұрын
for i in range(len(cogs)): cogs[i].setup(client) thats the code btw
@문준영-y1o3 жыл бұрын
hey max i have some questions when i use if xp == 0: await message.channel.send("blah blah") it doesnt work how can i fix it
@문준영-y1o3 жыл бұрын
@@maxcodez no erros so i cant fix it
@vxqpe3883 жыл бұрын
@@maxcodez Unexpected expression syntax
@vxqpe3883 жыл бұрын
@@문준영-y1o i know how to fix u probably done this wrong : xp -= ((50*((lvl-1)**2))+(50*(lvl-1)))
@freebie.3 жыл бұрын
@@vxqpe388 too many brackets
@Sciencedoneright3 жыл бұрын
why does it always say: you haven't sent any messasges
@lon9core3 жыл бұрын
object of type 'module' has no len() :( help
@jamster97653 жыл бұрын
If I wanted to make the XP you get for every message a random integer between 1 and 10, how would I get the bot to register when a user levels up?
@jatrovymnam81783 жыл бұрын
xp = xp + random.randrange(0,10) if xp > : lvl = lvl + 1
@mujtabanaveed35833 жыл бұрын
Import random And then use the code sent above
@samarthkj13202 жыл бұрын
Where is the discord server link ? Could not find it in the description ...
@samarthkj13202 жыл бұрын
anyone reply .. please ??
@_terminalunar_2 жыл бұрын
@@samarthkj1320 you asked for a reply. the discord server got hacked and there is no discord server anymore.
@BolehNgopi3 жыл бұрын
Maybe make for multiple servers
@hojitani3 жыл бұрын
that hair
@ih55693 жыл бұрын
how do i make the bot send the level up message in a specific channel like how MEE6 will say "GG, @jdwodhwodhwo has leveled up!" in a channel where its just for bots to send level up messages
@durammx3 жыл бұрын
await message.channel.send(f"Well done {message.author.mention}! You leveled up to **level: {lvl}**!") Instead of channel use bot_channel (or any other channel you predefined)
@sven04093 жыл бұрын
Is ist possible to just show the best 3 people in the leaderboard
@_ScyIIa_3 жыл бұрын
i get an error saying "event loop is closed" do you have any solution for that? i can't find any :( edit: i didn't enable the intent in the developer portal that's why, i'm so dumb... Great tutorial btw!
@blissless.3 жыл бұрын
thank you very much, you helped me!
@frozn143 жыл бұрын
I keep getting the same error: TypeError: argument of type 'int' is not iterable
@okgranted3 жыл бұрын
same did you ever figure it out
@breezeedits2 жыл бұрын
can i pls have code its so hard to write
@Plasma_073 жыл бұрын
for i in range(len(cogs)): cogs[i].setup(client) When I run the code it says TypeError: 'set' object is not subscriptable
@alexandredetiege56923 жыл бұрын
got same...
@els4.sdd13 жыл бұрын
change "cogs" to "cog", simple typo
@Plasma_073 жыл бұрын
@@els4.sdd1 lol figured that out long ago but thanks for letting me know
@KintabreH3 жыл бұрын
Hope someone responds. Can your discord owner use the ?rank command? On mine if i type it, nothing happens :/
@KintabreH3 жыл бұрын
@@maxcodez thanks for an answer. Need the code again
@-black.98073 жыл бұрын
pleas make more discord.py videos bro
@DeathItself3 жыл бұрын
I need some help. The leaderboard has no one in it, so i made it print the values and the ids are returning as None and the roles arent being added when they reach a certain level. It would be helpful if I could join your discord server for some help
@DeathItself3 жыл бұрын
I fixed the role issue, its just i still cant get it to write the info in the leaderboard embed
@DeathItself3 жыл бұрын
the printed version in the terminal showed this (None is the name of the user and the number below is their xp. I think the names being 'None' is stopping the command from working properly): None 10910 None 450 None 210
@DeathItself3 жыл бұрын
ok i have fixed it all. After searching on stack overflow and discord api i found that i hadnt enabled the intents in the code. Great video @Max Codez
@TheGamersurvival3 жыл бұрын
How can I add these commands to multiple text-channels?
@d3mon1x463 жыл бұрын
Add more Channels on top
@zeguyy3 жыл бұрын
Really good tutorial man, it’s worthy of a subscription! one thing.. Why did you show the client token? I just find it concerning, people might think it’s ok to show this string **Do not show anyone this token, your bot will get taken over remotely**
@RedrixHD3 жыл бұрын
Yknow you can just change ur token in the discord developer application? Which he prolly did after.
@zeguyy3 жыл бұрын
@@RedrixHD no, he made a video recently where he stated that he never regenerated the token and someone used it to destroy the discord server.
@redeiking32993 жыл бұрын
how can i make this for different servers? pls help me
@hakankarapnar48653 жыл бұрын
I deleted the codes I wrote incorrectly, please can you send the codes
@NMnly3 жыл бұрын
can you make a tutorial on Replit? because I tried it in replit and can't import MongoClient there
@NMnly3 жыл бұрын
@@maxcodez yes, from pymongo import MongoClient ImportError: cannot import name 'MongoClient' from 'pymongo' (/opt/virtualenvs/python3/lib/python3.8/site-packages/pymongo/__init__.py/) this is all it says on the console
@vipuljain22073 жыл бұрын
Input a password and name of cluster properly ijn example: !
@nikunjgupta33453 жыл бұрын
@@NMnly download dnspython also
@thellamaboi96643 жыл бұрын
dude knows maths, i dont. aint gonna workour for me....