Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in db account creation #5

Closed
Naman794 opened this issue Jan 6, 2022 · 2 comments
Closed

Error in db account creation #5

Naman794 opened this issue Jan 6, 2022 · 2 comments

Comments

@Naman794
Copy link

Naman794 commented Jan 6, 2022

Client table is missing, which is not letting the user create account
unknown (12)

@jaypey
Copy link
Owner

jaypey commented Jan 6, 2022

Hi,

The bot requires an sqlite3 database with the Client table to work.

In the command line in the same directory as confi.py, type sqlite3 coin.db, it will create the database.

Then, copy the following sql script in a .txt file (same directory):

CREATE TABLE "Clients" (
	"id"	INTEGER NOT NULL,
	"client_name"	varchar(255) NOT NULL,
	"balance"	int,
	"last_daily"	varchar(255),
	PRIMARY KEY("id")
)

To add the table to the database, just type .read <yourtextfile>.txt while in sqlite3.

It should work after that, you can also confirm the table has been created by using .tables which lists all the existing tables from the database.

@Naman794
Copy link
Author

Naman794 commented Jan 6, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants