-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from rjacobs31/feature/botpress-initialise
Feature/botpress initialise
- Loading branch information
Showing
7 changed files
with
273 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Delete this file to get rid of the initial Guided Tour |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
module.exports = { | ||
|
||
/** | ||
* where the content is stored | ||
* you can access this property from `bp.dataLocation` | ||
*/ | ||
dataDir: process.env.BOTPRESS_DATA_DIR || './data', | ||
|
||
modulesConfigDir: process.env.BOTPRESS_CONFIG_DIR || './modules_config', | ||
disableFileLogs: false, | ||
port: process.env.BOTPRESS_PORT || process.env.PORT || 3000, | ||
optOutStats: false, | ||
notification: { | ||
file: 'notifications.json', | ||
maxLength: 50 | ||
}, | ||
log: { | ||
file: 'bot.log', | ||
maxSize: 1e6 // 1mb | ||
}, | ||
|
||
/** | ||
* Access control of admin panel | ||
*/ | ||
login: { | ||
enabled: process.env.NODE_ENV === 'production', | ||
tokenExpiry: '6 hours', | ||
password: process.env.BOTPRESS_PASSWORD || 'password', | ||
maxAttempts: 3, | ||
resetAfter: 5 * 60 * 10000 // 5 minutes | ||
}, | ||
|
||
/** | ||
* Postgres configuration | ||
*/ | ||
postgres: { | ||
enabled: process.env.DATABASE === 'postgres', | ||
host: process.env.PG_HOST || '127.0.0.1', | ||
port: process.env.PG_PORT || 5432, | ||
user: process.env.PG_USER || '', | ||
password: process.env.PG_PASSWORD || '', | ||
database: process.env.PG_DB || '', | ||
ssl: process.env.PG_SSL || false | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = function(bp) { | ||
bp.middlewares.load() | ||
|
||
bp.hear({platform: "discord", type: "text", text: /^pandora:/i}, event => { | ||
bp.discord.sendText(event.channel.id, "Bananas!") | ||
}) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "node-pandora", | ||
"version": "0.0.1", | ||
"description": "", | ||
"main": "index.js", | ||
"dependencies": { | ||
"botpress": "0.x", | ||
"botpress-discord": "^2.0.9" | ||
}, | ||
"scripts": { | ||
"start": "botpress start", | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "AGPL-3.0" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
.bp-sidebar-header { | ||
.bp-logo {} | ||
} | ||
|
||
.bp-sidebar { | ||
.bp-sidebar-active {} | ||
.bp-sidebar-footer { | ||
.bp-name {} | ||
.bp-production {} | ||
} | ||
} | ||
|
||
.bp-page-header {} | ||
.bp-navbar { | ||
.bp-slack {} | ||
} | ||
|
||
.bp-notifications-dropdown { | ||
.bp-hub-message {} | ||
.bp-top-menu { | ||
.bp-item {} | ||
.bp-level-success {} | ||
.bp-level-info {} | ||
.bp-level-error {} | ||
.bp-item-unread {} | ||
} | ||
} | ||
|
||
.bp-content-wrapper {} | ||
|
||
.bp-middleware-list { | ||
.bp-header {} | ||
.bp-middleware { | ||
.bp-circle {} | ||
.bp-help-icon {} | ||
} | ||
} | ||
|
||
.bp-module-panel { | ||
.bp-module-title {} | ||
.bp-module-description {} | ||
.bp-module-author {} | ||
.bp-module-license {} | ||
} | ||
|
||
.bp-login { | ||
.bp-loading {} | ||
.bp-header {} | ||
} |