Skip to content

Commit

Permalink
Use !q
Browse files Browse the repository at this point in the history
  • Loading branch information
goncy committed Feb 17, 2022
1 parent 9379a1a commit 99172e0
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ See all chat messages and click one to feature it on the stream.
* Alt + Click: Toggle bookmark

## Commands
!question <question> // Automatically highlights the message
!q <question> // Automatically highlights the message

## Development instructions
* Run `npm start` on the console while being in this directory
Expand Down
4 changes: 2 additions & 2 deletions electron/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@goncy/twincy-electron",
"version": "1.1.0",
"version": "1.1.1",
"license": "MIT",
"productName": "twincy",
"description": "Show featured messages on your screen",
Expand Down
4 changes: 2 additions & 2 deletions packages/server/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ client.on("message", (_channel, tags, message) => {
let text = message;

// Check if the message is a question
const isQuestion = text.startsWith("!question ");
const isQuestion = text.startsWith("!q ");

// If is a question, strip the command
if (isQuestion) {
text = text.replace("!question ", "");
text = text.replace("!q ", "");
}

// On twitch message, send message to admin
Expand Down

0 comments on commit 99172e0

Please sign in to comment.