mirror of
https://github.com/arthur-pbty/New-discord-bot-coins.git
synced 2026-06-17 08:07:32 +02:00
add corp
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
require("dotenv").config();
|
||||
const sqlite3 = require("sqlite3").verbose();
|
||||
|
||||
const db = new sqlite3.Database(process.env.DATABASE, (err) => {
|
||||
if (err) {
|
||||
console.error(err.message);
|
||||
return;
|
||||
}
|
||||
console.log("Connected to the database.");
|
||||
});
|
||||
|
||||
db.run(`CREATE TABLE IF NOT EXISTS prefix (
|
||||
guildId TEXT NOT NULL,
|
||||
prefix TEXT NOT NULL DEFAULT '${process.env.PREFIX}',
|
||||
PRIMARY KEY (guildId)
|
||||
)`);
|
||||
|
||||
module.exports = db;
|
||||
Reference in New Issue
Block a user