#Global Bot and json
1 messages · Page 1 of 1 (latest)
I have many errors, is your code complete?
send me your import list
type "pip list" in your terminal and send my the result
first, for me "from discord import Message, Guild, TextChannel" have no sens
hmm
Does your bot use a database?
@red cypress Don’t use json, use mongodb or another database.
It is supposed to work with a json
json too
Some people may not help you since you’re using json and it’s not recommended to use for discord bots.
Flyx, My biggest concern is that I do not understand the purpose of your code, if you give me a better detail it is easier
Use this https://www.deepl.com/
It's true, SQLite, MariaDB, Mongo are the best, but it's not obvious for a beginner :/
Just to note JSON is not rlly good for data storage
{
"banned_users": [],
"ids": [
"863353708570083359"
]
}```
So if I put an id in the ID list it deletes all the messages of the user?
the globalchat command sends the user's message to all channels?
ok, "banned_users" what is it for?
Why do you store the id and name of the users?
So the json should look like this?
{
"ids": [
863353708570083359
]
}
I'll try to make you a code that works