I am wondering how you set variables for separate discord servers so I can use different data in different servers I have set up a MongoDB for storing the data but I have looked through forums and found nothing about setting separate server variables in discord.py
db = cluster["Discord"]
collection = db["Discord"]
population = collection.find()
client = commands.Bot(command_prefix='$')
@client.event
async def on_ready():
change_status.start()
print("----------------------")
print("Logged In As")
print("Username: %s" % client.user.name)
print("ID: %s" % client.user.id)
print("----------------------")