Update config setup

This commit is contained in:
Nikhil Nawgiri 2024-08-24 22:51:54 +02:00
parent 9a4fa5593a
commit 4664c36a2a
4 changed files with 10 additions and 8 deletions

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
crypto
bot.json
config.json
config.js
main.js
# Logs

8
config.js.example Normal file
View file

@ -0,0 +1,8 @@
module.exports = {
config: {
"homeserverUrl": "",
"accessToken": "",
"storageLocation": "bot.json",
"cryptoFolderLocation": "crypto"
}
}

View file

@ -1,6 +0,0 @@
{
"homeserverUrl": "",
"accessToken": "",
"storageLocation": "bot.json",
"cryptoFolderLocation": "crypto"
}

View file

@ -1,4 +1,4 @@
import * as config from "./config.json";
import { config } from "./config.js";
const sdk = require("matrix-bot-sdk");