10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
|
import { Bson, MongoClient } from "https://deno.land/x/mongo@v0.31.1/mod.ts";
|
||
|
import "https://deno.land/std@0.178.0/dotenv/load.ts";
|
||
|
|
||
|
const client = new MongoClient();
|
||
|
|
||
|
await client.connect(Deno.env.get("MONGOURL"));
|
||
|
|
||
|
const db = client.database('hajabot')
|
||
|
|
||
|
export default db;
|