-
Notifications
You must be signed in to change notification settings - Fork 3.7k
/
index.mjs
52 lines (49 loc) · 1.06 KB
/
index.mjs
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
49
50
51
52
'use strict'
import User from './src/User.mjs'
import Brain from './src/Brain.mjs'
import Robot from './src/Robot.mjs'
import Adapter from './src/Adapter.mjs'
import Response from './src/Response.mjs'
import Middleware from './src/Middleware.mjs'
import { Listener, TextListener } from './src/Listener.mjs'
import { TextMessage, EnterMessage, LeaveMessage, TopicMessage, CatchAllMessage, Message } from './src/Message.mjs'
import { DataStore, DataStoreUnavailable } from './src/DataStore.mjs'
const loadBot = (adapter, enableHttpd, name, alias) => new Robot(adapter, enableHttpd, name, alias)
export {
Adapter,
User,
Brain,
Robot,
Response,
Listener,
TextListener,
Message,
TextMessage,
EnterMessage,
LeaveMessage,
TopicMessage,
CatchAllMessage,
DataStore,
DataStoreUnavailable,
Middleware,
loadBot
}
export default {
Adapter,
User,
Brain,
Robot,
Response,
Listener,
TextListener,
Message,
TextMessage,
EnterMessage,
LeaveMessage,
TopicMessage,
CatchAllMessage,
DataStore,
DataStoreUnavailable,
Middleware,
loadBot
}