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