Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Shariq Torres committed Dec 11, 2021
1 parent 1644fa2 commit f3ff2e9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ let gifURLs = [

async function runMain(){
try {
let message = `<img src="${gifURLs[ Math.floor(Math.random() * gifURLs.length - 1)]}" width="200px" /> \n`
let randInt = Math.floor(Math.random() * gifURLs.length - 1)
console.log(randInt)
let message = `<img src="${gifURLs[randInt]}" width="200px" /> \n`
const octokit = new Octokit({auth: core.getInput('token')})
let res = await octokit.rest.issues.createComment({
issue_number: github.context.payload.issue.number,
Expand Down

0 comments on commit f3ff2e9

Please sign in to comment.