Skip to content
Sign UpLog In
Profile icon

Pokedric

@Pokedric
Repls
Community
Pokedric
Pokedric
shared a Post
1 year ago
Ban Network
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)
AymanMobayed
AymanMobayed
where do I download 10 months ago
OlauPla
OlauPla
Why would you do that? I don't think someone would want that. If you want the user getting banned not using your bot just create a blacklist command1 year ago
MrVoo
MrVoo
You could get a list of every server the bot is in, and check every member's ID? That might be possible1 year ago
Pokedric
Pokedric
shared a Post
1 year ago
from replit import db username = "{ctx.author.name}" db["{ctx.author.name}"] = "iron","gold" @bot.command(name="ironbal") async def ironbal(ctx: com
MrVoo
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
Pokedric
Pokedric
shared a Post
1 year ago
How do I randomize things in Python?
OlauPla
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
Wumi4
Wumi4
Use random module.1 year ago
FloCal35
FloCal35
What kind of randomize? you can import random and do a bunch of things with that1 year ago
Pokedric
Pokedric
shared a Post
2 years 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
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