nithssh / DiscordGameBot

A text-based life simlulator game on Discord (bot)
MIT License
1 stars 0 forks source link

Connection details to be moved to file #3

Closed nithssh closed 4 years ago

nithssh commented 4 years ago

The connection(cnx) credentials must be moved to a config file in repo.

nithssh commented 4 years ago

In the global scope:

config = { 'user': 'root', 'password': 'password', 'host': 'localhost' , 'database': 'gamedata.maintable' }

And replace all the cnx constructions with:

cnx = mysql.connector.connect(**config)

This will be a temporary fix

nithssh commented 4 years ago

The connection credentials must be moved to a file and ignored from this repo. The credentials must be changed during the same.

nithssh commented 4 years ago

Fixed/Implemented in: 27b1e98