diff --git a/config.default.json b/config.default.json index 2d8f15a..cf760b9 100644 --- a/config.default.json +++ b/config.default.json @@ -453,6 +453,55 @@ } }, "filter": "pride" + }, + "couch": [ + { + "src": "./resources/CouchTemplate.png", + "z": 2, + "anchor": { + "x": { + "position": 50, + "offset": 964 + }, + "y": { + "position": 50, + "offset": 530, + "size": 200 + } + } + }, + { + "src": "./resources/CouchBackground.png", + "z": 0, + "anchor": { + "x": { + "position": 0, + "offset": 0, + "size": 1920 + }, + "y": { + "position": 0, + "offset": 0, + "size": 1080 + } + } + } + ], + "ping": { + "src": "./resources/ping.png", + "z": 2, + "anchor": { + "x": { + "position": 100, + "offset": 350, + "size": 1024 + }, + "y": { + "position": 0, + "offset": -94, + "size": 1024 + } + } } } } diff --git a/index.js b/index.js index e35bb33..33c1a23 100644 --- a/index.js +++ b/index.js @@ -289,8 +289,8 @@ client.on('message', async message => { commandParsed = /^([/\\])(\w+)\b/.exec(messageSplit[i]); if (commandParsed) { const [, direction, command] = commandParsed; - console.log('Got command ', direction, command, direction === '\\' ? 'flipped' : 'not flipped', emoji); if (templates[command]) { + console.log('Got command ', direction, command, direction === '\\' ? 'flipped' : 'not flipped', emoji); count++; name += command; if (result === null) { diff --git a/resources/CouchBackground.png b/resources/CouchBackground.png new file mode 100644 index 0000000..3fe4dd1 Binary files /dev/null and b/resources/CouchBackground.png differ diff --git a/resources/CouchTemplate.png b/resources/CouchTemplate.png new file mode 100644 index 0000000..ca8f4c6 Binary files /dev/null and b/resources/CouchTemplate.png differ diff --git a/resources/ping.png b/resources/ping.png new file mode 100644 index 0000000..eda4f45 Binary files /dev/null and b/resources/ping.png differ