How to make an Economy Discord Bot Python | Discord.py 2020

  Рет қаралды 111,828

Code With Swastik

Code With Swastik

4 жыл бұрын

In this video, we will learn how to make an Economy System for a Discord bot in python using discord.py (rewrite) in 2020. We make the balance and beg command in this video.
If you have any suggestions for future videos, leave it in the comments below.
Some Useful Links -
Discord Developer Portal- / discord
My Discord Server- / discord
My Twitter - / codewithswastik
My Instagram - / code_with_swastik
Discord.py Documentation: discordpy.readthedocs.io/en/l...
Sublime Text: www.sublimetext.com/
Queries solved in the video:
1) How to make an Economy System in Discord.py
2) How to make a wallet in Discord.py
3) How to make an Economy Discord Bot Python
#economy #discord.py #discordbot

Пікірлер: 529
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
Hope you enjoyed! Subscribe if you did :)
@tapu_
@tapu_ 4 жыл бұрын
k
@strm.2995
@strm.2995 4 жыл бұрын
it didnt work, kept giving errors pls help its about keyerrors
@darlingdelaroca8435
@darlingdelaroca8435 3 жыл бұрын
How to up it
@darlingdelaroca8435
@darlingdelaroca8435 3 жыл бұрын
And SyntaxError: invalid syntax
@lucastan1147
@lucastan1147 3 жыл бұрын
DEF SUBSCIREB I LOVE YOU SOO MUCH THANKS
@lolbotdiscord
@lolbotdiscord 3 жыл бұрын
"the goal is 20 likes" hello my good man, you honestly underestimate yourself
@CodeWithSwastik
@CodeWithSwastik 3 жыл бұрын
Well... yes lol
@lolbotdiscord
@lolbotdiscord 3 жыл бұрын
@@CodeWithSwastik lol ty for all the videos I'm just starting out and you helped me so much, you gained a sub and a like :)
@magmatube1755
@magmatube1755 3 жыл бұрын
@@CodeWithSwastik You dropped these: 👑. 👑. 👑
@Zayther
@Zayther 4 жыл бұрын
This is seriously awesome! It's super inspiring to see other developers like me on KZfaq. Thank you for the content, and all the ways that you help people, whether it's your discord, or videos!
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
Glad you enjoy it!
@devin3957
@devin3957 3 жыл бұрын
This account is completely underrated! I mean an economy System, Reddit Data, these Turorials are everything we need and we know from other bots! :D I have to thank you so much for that! :)
@sushileaderyt1957
@sushileaderyt1957 2 жыл бұрын
I use this for Kaiheila lmao
@malolansriram6328
@malolansriram6328 2 жыл бұрын
yeah like dank memer
@BayGamerYT
@BayGamerYT 4 жыл бұрын
print('Congratulations! You win a new sub!')
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
Thanks lol
@noel6187
@noel6187 3 жыл бұрын
@사문 lol wut?
@thepeeps191
@thepeeps191 3 жыл бұрын
More Like: print(1000 * "You Got A New Sub! ")
@2hotflavored666
@2hotflavored666 3 жыл бұрын
@@thepeeps191 And in my case: print('Congratulations! You win a new sub!")
@ninjatepzyt
@ninjatepzyt 2 жыл бұрын
In my case : print u'\ue043Congratulations! You won a new sub!\ue043'
@jay-dh6zu
@jay-dh6zu 3 жыл бұрын
Can i quickly say, who disliked? This is probably the best discord bot economy system for python on youtube, it is so well made. This helped me out alot and is very clear if you follow every step.
@ke_ag
@ke_ag 2 жыл бұрын
Json isn't a database
@Sciencedoneright
@Sciencedoneright 3 жыл бұрын
I am very happy! I did not even had a clue on .json files and you helped me! Thank you! Love from India!
@fosto4489
@fosto4489 3 жыл бұрын
I must say this is very good video. Everything is clear to understand. Good job man.
@seldian
@seldian Жыл бұрын
10/10 tutorials man, you have a bright future ahead of you in both video making and software.
@itz_mune
@itz_mune 3 жыл бұрын
BRO!!! You are the first-ever KZfaqr with so much creativeness in dictionaries that really work!!!!! YOU ARE A LEGEND!! THANK YOU!!!!! YOU GOT 12 SUBSCRIBERS MORE!!!
@randiekat8700
@randiekat8700 2 жыл бұрын
This is really one of the best discord bot tutorials on KZfaq, just look at it!
@Seceroth
@Seceroth Жыл бұрын
Thanks for the help on this, I have been tweaking my code a tad as I am writing it in Telegram instead, but so far so good : D
@sponsorshipguy6712
@sponsorshipguy6712 3 жыл бұрын
OP bro i was having some doubt but you clear it thanks a lot bro
@xake995
@xake995 3 жыл бұрын
Thank you sooo soo much bro !!! I watched other tutorials and it did not work. But your code works bro!! Thank you very much :) liked the video and subscribed to your channel
@CodeWithSwastik
@CodeWithSwastik 3 жыл бұрын
Glad it helped
@goldsniper4345
@goldsniper4345 3 жыл бұрын
Thanks man this is a very good guide on how to make bots on discord I will defiantly be using this in the future!
@CodeWithSwastik
@CodeWithSwastik 3 жыл бұрын
Glad to hear it!
@cr6w
@cr6w 2 жыл бұрын
Dislikes are people who wanted to troll with the token and found out its invalid
@victortang5076
@victortang5076 2 жыл бұрын
thank you so much for this video. it explained so much for what I'm doing
@SouProds
@SouProds 2 жыл бұрын
Thanks Swastik! This worked for me.
@shooky5773
@shooky5773 3 жыл бұрын
Guys guys if you want your bot in a lot of servers then don't use JSON files. They're great for small storage like a prefix for each server but in reality, you can't make a decent economy system out of em. A great type of database is using Panda CSV files instead to make data tables.
@fikajlo
@fikajlo 4 жыл бұрын
Make a tutorial on how to get the bot to connect to a channel and play audio
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
Sure I'll also make a video about Music Bots
@hadesfades
@hadesfades 3 жыл бұрын
Literally just use Rhythm
@Hm-wr2lv
@Hm-wr2lv 3 жыл бұрын
@@hadesfades They want to make one Ok Like bruh there literally watching a Tutorial
@aihkww
@aihkww 3 жыл бұрын
@@hadesfades people want to develop bots, that's why
@blackball8681
@blackball8681 3 жыл бұрын
print('You honestly deserve over 1m subs')
@aayanbaig6736
@aayanbaig6736 3 жыл бұрын
LOL
@custom6000
@custom6000 3 жыл бұрын
nah, its await ctx.send(f"{user}, You honestly deserve over 1m subs")
@NeelHomework
@NeelHomework 3 жыл бұрын
when i was coding the from discord.ext im on python 3.7.8 what kind of version even btw im coding it for a person and it had a mistake and earing i imported random and it didnt work so could fix it myself?
@muhammadshafeeq5334
@muhammadshafeeq5334 3 жыл бұрын
Congrts 1K Subs u deserve it mate
@davidfilovski9048
@davidfilovski9048 2 жыл бұрын
Hello, I did the same thing as you, but the balance doesnt refresh after beg command is called.
@clear8376
@clear8376 3 жыл бұрын
The line "if str(user.id) in users:" is causing a TypeError: argument of type 'NoneType' is not iterable. Is there any solution to this? Edit: Solved itself but new error has appeared
@comet424
@comet424 3 жыл бұрын
having trouble with your code.. i followed both videos.. 1.. i had to remove the os.chdir running from repl.it it didnt work from my computer... also i get TypeError: 'Member' object is not suscriptable.. . balance and beg work.. but the other commands do not i constantly get thee suscriptable error
@lookboy478
@lookboy478 3 жыл бұрын
I followed the video, but when I execute, and I type -balance (cuz I 've set -), it says Unsupported operation: not writable
@aakashs6004
@aakashs6004 3 жыл бұрын
thanks man....... now my bot will be even used more....
@climpuright
@climpuright 3 жыл бұрын
3 Questions: 1. How do you know the user ID for mainbank.json? 2. What do you put in the {"wallet": (number), "bank":(number)} part? (What do you put in the (number) parts?) 3. My output console says: File "main.py", line 47 wallet_amt = users[str(user.id)]["wallet"] += earnings ^ SyntaxError: invalid syntax (Basically, it says that the '+=' part is an invalid syntax.) Any help? Thanks to anyone who helps!
@ChannelPro666
@ChannelPro666 3 жыл бұрын
Big respect on this from uk
@musicalboysshauryaa7611
@musicalboysshauryaa7611 3 жыл бұрын
print ("The best tutorial I've ever seen , keep it up and you get a subscriber")
@CodeWithSwastik
@CodeWithSwastik 3 жыл бұрын
Thanks for the sub!
@blackstrikesk-dev4897
@blackstrikesk-dev4897 3 жыл бұрын
Hey mate, whenever I try to run a command, it says: NameError: name 'ctx' is not defined, any help?
@itzsoulzyt7734
@itzsoulzyt7734 4 жыл бұрын
I WAS WAITING FOR THIS THANKS LMAO
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
Noice
@chxudot715
@chxudot715 2 жыл бұрын
this is seriously an amazing tutorial!! i just have a quick question; what if i wanted to do something like transferring coins between a user's bank and wallet? how would i code it so that the bot accepts numerical input and adds/subtracts that amount from the user's bank/wallet and add to the one they want it to be in?
@avcreatorscoding7536
@avcreatorscoding7536 3 жыл бұрын
Hey Swastik, how to get past the key error that we get the first time a user sends a command? It kills my bot within say, 5 hrs as my bot is used in over 78 servers... Please help :))
@Garvitttt
@Garvitttt 3 жыл бұрын
Love from Rajasthan India ❤️
@thecoasterarchitect1210
@thecoasterarchitect1210 2 жыл бұрын
you just earned a ✨sub✨
@lamerE856
@lamerE856 2 жыл бұрын
Bro thank you I’m subbing
@Peppewarrior1
@Peppewarrior1 3 жыл бұрын
gives me this error: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: KeyError: '488826524791734275' why?
@jerryli6763
@jerryli6763 3 жыл бұрын
Nice video! Earned my sub :)
@its_izhaan
@its_izhaan 4 жыл бұрын
Lmao , swastik , first!
@user-il8ig8jj5q
@user-il8ig8jj5q 2 жыл бұрын
This seems so uncompleted. 1 - Saving economy data into JSON is not effective. There is so many alternatives to JSON that ensures stablity and ease of use such as mySQL or SQLite. 2 - CHDIR-ing in OS makes this code not portable. Every computer has its own user and its own path. However as os chdir hardcodes the path, it makes hardness to port code.
@Talk2Asap
@Talk2Asap 2 жыл бұрын
what if you use os.chdir('./')
@eliericksson.8950
@eliericksson.8950 3 жыл бұрын
I just got feedback that my JSON file as a database will eventually crash, and that I need to use something like MongoDB or something else, Is this true or false?
@silentserenity2364
@silentserenity2364 3 жыл бұрын
that would be dependent upon how much information is being stored in there, like to avoid typical overload, you would use a MongoDB, but otherwise, I wouldn't think a JSON database would crash :)
@syn7460
@syn7460 3 жыл бұрын
I followed the tutorial and once i was done and tried the command it gave no response could i see the source code to see what i messed up thank you
@GreenBeanZ001
@GreenBeanZ001 3 жыл бұрын
How do I connect this code to the actual bot and use commands with it sure you made the economy but linking it to the bot was not shown
@jatrovymnam8178
@jatrovymnam8178 3 жыл бұрын
Command raised an exception: TypeError: object function can't be used in 'await' expression @client.command() async def balance(ctx): await open_account(ctx.author) user = ctx.author users = await get_bank_data the error is in await or can u send an code ?
@imcorrectcomeon7393
@imcorrectcomeon7393 3 жыл бұрын
Try removing await function from get bank data
@AllRounderAdi
@AllRounderAdi 3 жыл бұрын
the beg command works but my balance doesnt get updated and no i dont use heroku so can someone help ?
@robby6198
@robby6198 3 жыл бұрын
Can you show us how to add in the Stock Market game that appears in the beginning of your video? That would be great addition!
@haristaeus7074
@haristaeus7074 3 жыл бұрын
hey, im using repl.it to host my bot and i copied this code for a good starting ground to work from my bot but my code wont run, is there something else i need to do to run on repl.it
@olihasamassivewood4556
@olihasamassivewood4556 3 жыл бұрын
could somebody help why is the error "discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: 'Command' object has no attribute 'randrange'" poping up
@rishikumar3464
@rishikumar3464 3 жыл бұрын
Bro when i run my bot only the beg commad works and the balance feature is not working
@Navigator_44
@Navigator_44 2 жыл бұрын
THANKS!!!! Ur great!
@thoess2777
@thoess2777 3 жыл бұрын
at 2:07 in the video on the os.chdir bit how do u find the file for the bot
@NetFelixOfficiel
@NetFelixOfficiel 3 жыл бұрын
I would like to make a fake economy system where when people use the command !work it would give them a number of money randomly and then it accumulates with every time. How would i do this
@xl_spooky6818
@xl_spooky6818 3 жыл бұрын
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: NameError: name 'open_account' is not defined
@secretlloyd7900
@secretlloyd7900 3 жыл бұрын
Idk what I did but I got this error Traceback (most recent call last): File "C:\Users\Libra\PycharmProjects\Discord Bot\main.py", line 16, in @client.commands() TypeError: 'set' object is not callable
@juliancanfaulk5070
@juliancanfaulk5070 2 жыл бұрын
@client.command()
@gpioneer
@gpioneer 3 жыл бұрын
Do I need an os chdir if I am using repl?
@amjadrasheed444
@amjadrasheed444 3 жыл бұрын
i'm sorry but what if i host the bot through heroku is there a way to make the bot flexible somehow?
@thenamelessshidposter1348
@thenamelessshidposter1348 3 жыл бұрын
You go back and forth deleting code a bit, would it be possible to post the code so I can take the bits I need as I'm a bit confused :/
@senkusbizarreadventure494
@senkusbizarreadventure494 3 жыл бұрын
Have you a Github where all your files are in ?
@Thunder_AB-ss1bj
@Thunder_AB-ss1bj 2 жыл бұрын
wait the json file will be refreshed if we will host it on some server right if we restart the bot every single time
@darkmatter1675
@darkmatter1675 3 жыл бұрын
for some reason it isnt working. it just closes instantly uppon open. does anyone know any reasons to why this is? thanks
@liorcohen1609
@liorcohen1609 3 жыл бұрын
does someone has a github for this project?
@amebavelvet
@amebavelvet 2 жыл бұрын
'Member' object does not support item assignment when i do prefix at the bot
@VulkCODM
@VulkCODM 3 жыл бұрын
man thank u so much i always wanted to make a economy bot for my server and i know i could use dank memer but then sometimes when u meme with dank memer he memes inappropriate memes sometimes so i thought why not make a bot only for economy and no memeing and i found this
@poggersbutnot
@poggersbutnot 3 жыл бұрын
It was working fine, (i watched tutorials 1-2) and then suddenly after not changing anything every command gave errors....
@sweetsweety7918
@sweetsweety7918 3 жыл бұрын
Could you provide us with the finished product source code ?
@horue
@horue 2 жыл бұрын
What if I want to make it a per server systan? How do I do that?
@ilovedatfruitybooty9546
@ilovedatfruitybooty9546 4 жыл бұрын
Tbh, using a mysql database would be much better and convenient. But it's all right,well done on the vid :>
@CodeWithSwastik
@CodeWithSwastik 4 жыл бұрын
True, I will make a more advanced series about this soon :)
@ArhamSanooj
@ArhamSanooj 3 жыл бұрын
I did the code just like how you did and then when I type !balance or !beg the bot doesn't respond, when starting the bot no problem happens but when I use the command the bot doesn't respond. please help me with this, Thank You
@ishaanagrawal3575
@ishaanagrawal3575 3 жыл бұрын
Yeah i think this problem is happening with a lot of ppl. There are many comments about it
@freesoulgaming6171
@freesoulgaming6171 3 жыл бұрын
in command prompt its showing that it can't unicodeeescape what to do??
@andreijula2112
@andreijula2112 3 жыл бұрын
Hey man! Congrats on the tutorial series and thank you for helping others! I just have one question: If I implement a simple currency system to my bot this way, with a json file, would the bot be ready for publishing? I'd like to give it to some of my friends for their servers, but I don't want the data from one server to mix with the data from another server in the json file. Let's say I have 300 credits on X server. If I invite the bot over to the Y server, would I still have my 300 credits on the Y server or not? If yes, how do I fix that issues to make the bot usable? Thank you very much!
@ghazanfar6445
@ghazanfar6445 3 жыл бұрын
Complete the tutorial because he has a playlist for building this economy, he will tell you how to
@5uy0g
@5uy0g Жыл бұрын
if I am making it on replit what path do I put
@lukelubala4330
@lukelubala4330 3 жыл бұрын
Mine didn't work its saying I have to remove the +and when I do it keeps saying for me to remove a lot of things
@sheenahaven3324
@sheenahaven3324 2 жыл бұрын
do you have reaction roles? trying to look for it but cant find it ;
@joyli7117
@joyli7117 2 жыл бұрын
Does anyone have the written code for this? The way he scrolls up and down is too confusing for me.
@_manana
@_manana 3 жыл бұрын
My error messege :( File "C:\Users ame\Desktop\discord\main.py", line 34 users await = get_bank_data () ^ IndentationError: unident does not match any outer indentation level
@iamnoob4105
@iamnoob4105 3 жыл бұрын
same here
@guzzy4326
@guzzy4326 3 жыл бұрын
Hello, my error is "line 1, in import discord ModuleNotFoundError: No module named 'discord' " can someone help me? thank you.
@ladybug2750
@ladybug2750 3 жыл бұрын
how did you get The economy in 2:10 what did you do to do that? Im am so confused
@saladhat9152
@saladhat9152 3 жыл бұрын
does anyone have the code? i've got a few errors and i've checked the code and this video 3 times and found nothing.
@terabyte.9774
@terabyte.9774 3 жыл бұрын
File "d:\terry\Documents\CoggedSentry\bot.py", line 305, in open_account if str(user.id) in users: TypeError: argument of type 'NoneType' is not iterable w h a t h a p p e n ?
@lekdenwangyel109
@lekdenwangyel109 2 жыл бұрын
Instead of beg can you tell me how I can use command like /give command to give people moneg
@holysushi7093
@holysushi7093 3 жыл бұрын
I only have one line of code that doesn’t want to work cause I’m on Linux terminal it’s harder to find the directory other than that love the video
@reirgamingyt7851
@reirgamingyt7851 3 жыл бұрын
Nice man ty
@tanishqagarwal5496
@tanishqagarwal5496 3 жыл бұрын
You should consider using databases or maybe MongoDB
@reaperprogrammer9212
@reaperprogrammer9212 3 жыл бұрын
Please help "TypeError: 'Member' object does not support item assignment"
@know.8203
@know.8203 2 жыл бұрын
dude can you please tell wth you put in the client.run
@Meziosaur
@Meziosaur 3 жыл бұрын
Anyone know how to make the os.chdir thing work on replit?
@PTBORailfan
@PTBORailfan 3 жыл бұрын
Does this work with replit?
@xmxhmxtx
@xmxhmxtx 3 жыл бұрын
when 'beg' is used it wont update the json file for me
@malligalliblaa9025
@malligalliblaa9025 3 жыл бұрын
this tutorial is awsome you get one more sub mr swastik
@malligalliblaa9025
@malligalliblaa9025 3 жыл бұрын
btw dont laugh at my name
@CodeWithSwastik
@CodeWithSwastik 3 жыл бұрын
thanks :)
@berkpower4196
@berkpower4196 3 жыл бұрын
Swastik, is there anyway you can post the code somewhere? When I run e!beg, it shows it gives the money But when I run e!balance, it doesn't show the money. But in the JSON file it shows that I have the money.
@Rohit-sn3ew
@Rohit-sn3ew 3 жыл бұрын
@bot.command() async def bal(ctx): await open_account(ctx.author) user = ctx.author users = await get_bank_data() wallet_amt = users[str(user.id)]["wallet"] bank_amt = users[str(user.id)]["bank"] em = discord.Embed(title = f"{ctx.author.name}'s balance",color = discord.Color.green()) em.add_field(name = "Wallet balance",value = wallet_amt) em.add_field(name = "Bank balance",value = bank_amt) await ctx.send(embed = em) @bot.command() async def beg(ctx): await open_account(ctx.author) user = ctx.author users = await get_bank_data() earnings = random.randrange(501) await ctx.send(f"Someone Gave You {earnings} coins!!") users[str(user.id)]["wallet"] += earnings with open("economy.json","w") as f: json.dump(users,f) async def open_account(user): users = await get_bank_data() if str(user.id) in users: return False else: users[str(user.id)] = {} users[str(user.id)]["wallet"] = 500 users[str(user.id)]["bank"] = 0 with open("economy.json","w") as f: json.dump(users,f) return True async def get_bank_data(): with open("economy.json","r") as f: users = json.load(f) return users here it is THANK ME LATER :)
@universenerdd
@universenerdd 3 жыл бұрын
2:11 WOAH! Thank you, I have used this to create a crypt0currency relying on discord, I had the idea but didn't know much about json files and now its the most searched term for discord.py
@DoodleAnnaRocks
@DoodleAnnaRocks 3 жыл бұрын
Can you please show the whole code somewhere?
@dariusmalek8347
@dariusmalek8347 3 жыл бұрын
The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/home/kali/.local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 903, in invoke await ctx.command.invoke(ctx) File "/home/kali/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 855, in invoke await injected(*ctx.args, **ctx.kwargs) File "/home/kali/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnsupportedOperation: not writable anyone can help?
@Thvl3
@Thvl3 Жыл бұрын
why are you writing a discord bot on kali?
@eliericksson.8950
@eliericksson.8950 3 жыл бұрын
How would I add a cooldown to my commands? Idk if that would work but it would be really helpful in preventing spam! Thanks!
@drdimension4943
@drdimension4943 3 жыл бұрын
@commands.cooldown(1, 5, commands.cooldown.BucketType.user) Put that after the command, but before the asynchronized definition. This makes it so that a user can send the command one time every five seconds.
@eliericksson.8950
@eliericksson.8950 3 жыл бұрын
@@drdimension4943It says "AttributeError: 'function' object has no attribute 'BucketType' "
@drdimension4943
@drdimension4943 3 жыл бұрын
@@eliericksson.8950 send me your code
@drdimension4943
@drdimension4943 3 жыл бұрын
@@eliericksson.8950 Wait actually, it would be @commands.cooldown(1, 5, commands.BucketType.user)
@eliericksson.8950
@eliericksson.8950 3 жыл бұрын
@@drdimension4943 Thanks a ton! It works really well.
@ragubagu4646
@ragubagu4646 3 жыл бұрын
bro i loved your tutorial but: discord.ext.commands.errors.CommandInvokeError: Command raised an exception: TypeError: Object of type Member is not JSON serializable the error is killing me pls HELP
@0_rkx
@0_rkx 3 жыл бұрын
pog moment THANKS
@XULSS
@XULSS 3 жыл бұрын
Can you leave this script somewhere? So we can just paste it in our bot
@grumbles9164
@grumbles9164 3 жыл бұрын
BRUH I LOVE THIS
@sahirbinsaud680
@sahirbinsaud680 2 жыл бұрын
pls help me -Ignoring exception in command balance: Traceback (most recent call last): File "C:\Users\sidra\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\ext\commands\core.py", line 85, in wrapped ret = await coro(*args, **kwargs) File "c:\Users\sidra\Desktop\DIscord Chat Bot\bilgatescurenytry.py", line 19, in balance await open_account(ctx.author) File "c:\Users\sidra\Desktop\DIscord Chat Bot\bilgatescurenytry.py", line 65, in open_account json.dump(users,f) File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.9_3.9.2032.0_x64__qbz5n2kfra8p0\lib\json\__init__.py", line 180, in dump fp.write(chunk) io.UnsupportedOperation: not writable The above exception was the direct cause of the following exception: Traceback (most recent call last): File "C:\Users\sidra\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\ext\commands\bot.py", line 939, in invoke await ctx.command.invoke(ctx) File "C:\Users\sidra\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\ext\commands\core.py", line 863, in invoke await injected(*ctx.args, **ctx.kwargs) File "C:\Users\sidra\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.9_qbz5n2kfra8p0\LocalCache\local-packages\Python39\site-packages\discord\ext\commands\core.py", line 94, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnsupportedOperation: not writable
How to make an Economy Discord Bot Python | Part 2 Discord.py 2020
19:23
Code With Swastik
Рет қаралды 27 М.
I tried Discord Bot Makers...
14:19
FaceDev
Рет қаралды 109 М.
New model rc bird unboxing and testing
00:10
Ruhul Shorts
Рет қаралды 29 МЛН
DEFINITELY NOT HAPPENING ON MY WATCH! 😒
00:12
Laro Benz
Рет қаралды 64 МЛН
EVOLUTION OF ICE CREAM 😱 #shorts
00:11
Savage Vlogs
Рет қаралды 8 МЛН
Create a Music Discord bot using Python
16:46
Computeshorts
Рет қаралды 113 М.
Mee6 Will Make You Rich on Discord????
8:32
No Text To Speech
Рет қаралды 247 М.
How to Make a Discord Bot with Python
29:17
pixegami
Рет қаралды 55 М.
EASY! Organize Your Messy Code Using COGS! (Ep. 13)
16:36
sanamo
Рет қаралды 13 М.
I Made My Own Discord Bot
5:17
NathanOnDev
Рет қаралды 37 М.
Making a Discord Bot | Part 10: Cogs | Discord.py 2.0
5:26
[NEW] Slash Commands in Less than 10 Minutes Using Discord.PY
5:55
Новые iPhone 16 и 16 Pro Max
0:42
Romancev768
Рет қаралды 2,2 МЛН
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 6 МЛН