Skip to content

Commit

Permalink
fix: closes marioparaschiv#18
Browse files Browse the repository at this point in the history
  • Loading branch information
eternal committed Feb 9, 2021
1 parent ea6c568 commit a53c6fe
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/modules/Giveaway.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ module.exports = class Giveaway {

// Get info from embed
let prize = embed.author?.name;
let hoster = embed.description

let description = embed.description
?.replace(/\r/g, "")
?.split('\n')[1]
?.split('\n');

let hoster = description[description.length - 1]
?.match(/[0-9]{17,20}/gim)[0];

// Fetch hoster
Expand Down

0 comments on commit a53c6fe

Please sign in to comment.