0.4.0b1 add database and /userinfo (incomplete)
This commit is contained in:
parent
3f13fe1ec0
commit
5b98a2e98a
18 changed files with 1194 additions and 243 deletions
15
src/main.ts
15
src/main.ts
|
|
@ -1,7 +1,20 @@
|
|||
import client from "./bot";
|
||||
|
||||
import init from "./initConfig";
|
||||
|
||||
init();
|
||||
|
||||
import client from "./bot";
|
||||
|
||||
// query TEST
|
||||
import { db } from "./db/database";
|
||||
import { count } from "drizzle-orm";
|
||||
import { users } from "./db/schema";
|
||||
import chalk from "chalk";
|
||||
(async function () {
|
||||
const uCount = await db.select({ count: count() }).from(users);
|
||||
console.log(`Watching over ${chalk.bold(uCount)} users`);
|
||||
})().then(() => { });
|
||||
// END query TEST
|
||||
|
||||
client.login(process.env.TOKEN);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue