Pokedric
@Pokedric
I have a few servers. when i type "*nban" it bans a certain user in all of the servers the bot is in. How to do that?
(discord.py)
from replit import db
username = "{ctx.author.name}"
db["{ctx.author.name}"] = "iron","gold"
@bot.command(name="ironbal")
async def ironbal(ctx: com
MrVoo Your description makes zero sense, but you need to change the quotes around redstone and lapis on line 56 to single quotes1 year ago
How do I randomize things in Python?
OlauPla Hello I see that your question was answered by @Wumi4 and @FoCal35 but I had a look at your code. If you want to make a bot with d.py don't use client use bot. It is basically client but with more stuff designed for making bots: https://vcokltfre.dev/tips/clientbot/. This link will show you why that is better and here is a tutorial for you to follow: https://vcokltfre.dev/.
Nevertheless I think if you haven't use simple modules like random you shouldn't start with discord.py it is not the easi1 year ago
Lets take "Dank memer" for example. I want the bot to remember what i have and what i did. Example: What the bot said, and for example i got 1 fish wh
OldWizard209 You will need to use replit's database. The databse works with key-value pairs. But because your user will have more than one thing in his inventory, you can pass in a list or dicitonary.:
from replit import db
username = "BigBoiii" # Example username...
db[username] = [fish, money, boars, deers, skunks, rods, rifles.]
"Possible" Examples of Dank Memer Items.
To access:
fish = int(dbusername)
Change value of fish:
fish = 1
print(f"You have {fish} fish")
So no matter how many times the bot 2 years ago