Fix last issues
This commit is contained in:
parent
f3bb1509f2
commit
99fcf882fb
@ -10,7 +10,7 @@ module.exports = class NitroBypassSettings extends React.Component {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<SliderInput
|
<SliderInput
|
||||||
note="Set the size of the emotes."
|
note="The size of the emotes."
|
||||||
minValue={16}
|
minValue={16}
|
||||||
maxValue={128}
|
maxValue={128}
|
||||||
stickToMarkers
|
stickToMarkers
|
||||||
|
6
index.js
6
index.js
@ -35,16 +35,16 @@ module.exports = class NitroBypass extends Plugin {
|
|||||||
emoji.id
|
emoji.id
|
||||||
}>`;
|
}>`;
|
||||||
|
|
||||||
const emojiUrl = emoji.url;
|
let url = emoji.url;
|
||||||
|
|
||||||
// change the size of the emojie in the url
|
// change the size of the emojie in the url
|
||||||
const emojiSize = this.settings.get('size', 48);
|
const emojiSize = this.settings.get('size', 48);
|
||||||
if (emojiSize != 48) {
|
if (emojiSize != 48) {
|
||||||
emojiUrl = emojiUrl.replace(/\?size=[0-9]+/, `?size=${emojiSize}`);
|
url = url.replace(/\?size=[0-9]+/, `?size=${emojiSize}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// replace the message containing the emojie with the url
|
// replace the message containing the emojie with the url
|
||||||
message.content = message.content.replace(emoteString, emojiUrl);
|
message.content = message.content.replace(emoteString, url);
|
||||||
});
|
});
|
||||||
|
|
||||||
return args;
|
return args;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "Nitro bypass",
|
"name": "Nitro bypass",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "Send any emote and screen share in high quality.",
|
"description": "Send any emote and screen share in high quality.",
|
||||||
"author": "oSumAtrIX#5767",
|
"author": "oSumAtrIX#5767",
|
||||||
"license": "GPL-3.0"
|
"license": "GPL-3.0"
|
||||||
|
Loading…
Reference in New Issue
Block a user