Skip to content

Commit

Permalink
Channel...
Browse files Browse the repository at this point in the history
  • Loading branch information
sampoder committed Jul 10, 2022
1 parent 465015e commit ce5b043
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/interactions/css.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { reaction } from "../utils"
let validateCss = require('css-validator');

const interactionHaiku = async (bot, message) => {
const { text, ts } = message
const interactionCSS = async (bot, message) => {
const { text, channel, ts } = message
validateCss({text}, async function (_, data) {
if(data.validity){
await reaction(bot, 'add', channel, ts, 'art')
}
});
}

export default interactionHaiku
export default interactionCSS
2 changes: 1 addition & 1 deletion src/interactions/haiku.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { reaction, transcript } from "../utils"
import { format } from "haiku-detect"

const interactionHaiku = async (bot, message) => {
const { text, user, ts } = message
const { text, user, ts, channel } = message
const noLineText = text.replace(/\n/g, ' ')
const haikuLines = format(noLineText)
if (haikuLines.length == 3) {
Expand Down

0 comments on commit ce5b043

Please sign in to comment.