work on getting env variables working
This commit is contained in:
parent
8f1f6efad1
commit
3a8a586e12
7
index.ts
7
index.ts
|
@ -1,11 +1,14 @@
|
|||
import x2i from "./x2i";
|
||||
|
||||
const config = require("./config.json");
|
||||
// const config = require("./config.json");
|
||||
|
||||
const MatrixClient = require("matrix-bot-sdk").MatrixClient;
|
||||
const AutojoinRoomsMixin = require("matrix-bot-sdk").AutojoinRoomsMixin;
|
||||
|
||||
const client = new MatrixClient(config.homeserver, config.token);
|
||||
const homeserver = ( /*config.homeserver || process.env.WUG_HOMESERVER ||*/ process.env.MATRIXDEV_HOMESERVER);
|
||||
const token = (/* config.token || process.env.WUG_TOKEN||*/ process.env.MATRIXDEV_TOKEN);
|
||||
|
||||
const client = new MatrixClient(homeserver, token);
|
||||
AutojoinRoomsMixin.setupOnClient(client);
|
||||
|
||||
const myself = client.getUserId()
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue