Update config setup
This commit is contained in:
parent
9a4fa5593a
commit
4664c36a2a
4 changed files with 10 additions and 8 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
crypto
|
||||
bot.json
|
||||
config.json
|
||||
config.js
|
||||
main.js
|
||||
|
||||
# Logs
|
||||
|
|
8
config.js.example
Normal file
8
config.js.example
Normal file
|
@ -0,0 +1,8 @@
|
|||
module.exports = {
|
||||
config: {
|
||||
"homeserverUrl": "",
|
||||
"accessToken": "",
|
||||
"storageLocation": "bot.json",
|
||||
"cryptoFolderLocation": "crypto"
|
||||
}
|
||||
}
|
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"homeserverUrl": "",
|
||||
"accessToken": "",
|
||||
"storageLocation": "bot.json",
|
||||
"cryptoFolderLocation": "crypto"
|
||||
}
|
2
main.ts
2
main.ts
|
@ -1,4 +1,4 @@
|
|||
import * as config from "./config.json";
|
||||
import { config } from "./config.js";
|
||||
|
||||
const sdk = require("matrix-bot-sdk");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue