forked from gaguevaras/slashbot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.js
More file actions
48 lines (45 loc) · 1.82 KB
/
config.js
File metadata and controls
48 lines (45 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
var IRCConnector = require("./classes/IRCConnector.class");
var SlackConnector = require("./classes/SlackConnector.class");
var JSONConnector = require("./classes/persistence/JSONConnector.class");
var MongoConnector = require("./classes/persistence/MongoConnector.class");
var ConversationConnector = require("./classes/conversation/ConversationCleverbot.class");
// Sample Slack-thru-IRC config
module.exports = {
environment: "gusMachine",
channel: "slashbottest",
server: "ffoundry.irc.slack.com",
botName: "lulz",
password: "ffoundry.MUr0IDVbPois5VgPtbYY",
connector: SlackConnector,
conversation: ConversationConnector,
// token: 'xoxb-47967087845-iMA1zwp2jHK5geu9emPyppM6', //lulz
token: process.env.FOUNDRYBOT_TOKEN, //obibot
webapiTestToken: process.env.SLACK_WEB_API_TEST_TOKEN || '',
autoReconnect: true,
autoMark: true,
persistence: MongoConnector,
dbURL: process.env.MONGODB_URI || 'mongodb://localhost:27017/slashbot',
cseId: process.env.CSE_ID || '',
cseKey: process.env.CSE_KEY || '',
googleProjectId: process.env.GOOGLE_PROJECT_ID || '',
type: process.env.type || '',
project_id: process.env.project_id || '',
private_key_id: process.env.private_key_id || '',
private_key: process.env.private_key || '',
client_email: process.env.client_email || '',
client_id: process.env.client_id || '',
auth_uri: process.env.auth_uri || '',
token_uri: process.env.token_uri || '',
auth_provider_x509_cert_url: process.env.auth_provider_x509_cert_url || '',
client_x509_cert_url: process.env.client_x509_cert_url || '',
};
// Sample plain IRC config
// module.exports = {
// environment: "slashieMachine",
// channel: "#slashbot",
// server: "verne.freenode.net",
// botName: "obibot",
// connector: IRCConnector,
// persistence: MongoConnector,
// dbURL: 'mongodb://localhost:27017/slashbot'
// };