Parent Directory
|
Revision Log
chore: eslint autofix
1 | rakin | 51 | import DiscordClient from './Client'; |
2 | rakin | 327 | import mongoose from "mongoose"; |
3 | rakin | 5 | |
4 | rakin | 51 | export default class Database { |
5 | client: DiscordClient; | ||
6 | dbpath: string; | ||
7 | |||
8 | constructor(dbpath: string, client: DiscordClient) { | ||
9 | this.client = client; | ||
10 | rakin | 5 | this.dbpath = dbpath; |
11 | rakin | 59 | |
12 | rakin | 327 | mongoose.connect(process.env.MONGO_URI!) |
13 | .then(() => console.log("Connected to MongoDB")) | ||
14 | .catch(console.error); | ||
15 | rakin | 5 | } |
16 | rakin | 342 | } |
[email protected] | ViewVC Help |
Powered by ViewVC 1.1.26 |