Skip to content

Commit ea606e0

Browse files
committed
Adding example couch db views
1 parent 24d7b08 commit ea606e0

File tree

4 files changed

+34
-2
lines changed

4 files changed

+34
-2
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
config.json
22
node_modules/
33
SFX/
4-
logs/
4+
logs/
5+
config/new-config.json

couchdb-views.txt

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
twitchbot:
2+
3+
users/byName
4+
function (doc) {
5+
emit(doc._id, doc.name);
6+
}
7+
8+
users/byPoints
9+
function (doc) {
10+
emit(doc._id, doc.points);
11+
}
12+
13+
users/byColours
14+
function (doc) {
15+
emit(doc._id, doc.colour);
16+
}
17+
18+
users/byFlags
19+
function (doc) {
20+
emit(doc._id, doc.flag);
21+
}
22+
23+
thatsbambotquotes:
24+
quotes/all
25+
function (doc) {
26+
if(doc.isQuote) emit(doc._id, doc.quote);
27+
}

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var config = require('./config/config.json'),
1+
var config = require('./config/new-config.json'),
22
twitch = require('./js/twitch')(config),
33
Storage = require('./js/storage'),
44
commandCost = require('./js/command-cost'),

js/commands/text-responses.json

+4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
"pew": "=========★",
3232
"tableflip": "(╯°□°)╯︵ ┻━┻",
3333
"tablefip": "(╯°□°)╯︵ ┬──┬",
34+
"shrug": " ʅฺ(・ω・。)ʃฺ",
35+
"groovy": "₍₍ (ง ˙ω˙)ว ⁾⁾",
36+
"regret": "(◞‸◟;)",
37+
"celebrate": "ヾ(〃^∇^)ノ♪",
3438
"zzz": " Zzz",
3539
"tressfx": "http://www.blogcdn.com/www.engadget.com/media/2013/03/tressfx-3-1-13-03.jpg",
3640
"lies": "LIES!!",

0 commit comments

Comments
 (0)