Added /ping and /couch
This commit is contained in:
parent
5a6bd5c6a5
commit
62d881d8a7
5 changed files with 50 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
2
index.js
2
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) {
|
||||
|
|
BIN
resources/CouchBackground.png
Normal file
BIN
resources/CouchBackground.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
BIN
resources/CouchTemplate.png
Normal file
BIN
resources/CouchTemplate.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.7 MiB |
BIN
resources/ping.png
Normal file
BIN
resources/ping.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.6 KiB |
Reference in a new issue