Why not split your bot into cogs? Having everything in one 1.5k-line file is messy and hard to manage. I suggest using cogs like utilities.py, moderation.py, database.py, etc.