This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = class SlashCommandManager { | |
constructor(client) { | |
this.client = client; | |
}; | |
async createGlobalCommand(data = {}) { | |
return this.client.api.applications(this.client.user.id).commands.post({ | |
data: data | |
}); |
This file has been truncated, but you can view the full file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aa | |
aah | |
aahed | |
aahing | |
aahs | |
aal | |
aalii | |
aaliis | |
aals | |
aardvark |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--- Config ---// | |
const config = { | |
videoIdFinderStart: `"videoId":"`, | |
videoIdFinderEnd: '"', | |
timesToCheck: 180, | |
videoIdLength: 11, | |
}; | |
//--- Module Imports ---// | |
const axios = require('axios'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function rgb2hsv(r, g, b) { | |
r /= 255, g /= 255, b /= 255; | |
var max = Math.max(r, g, b), min = Math.min(r, g, b); | |
var h, s, v = max; | |
var d = max - min; | |
s = max == 0 ? 0 : d / max; | |
if (max == min) { | |
h = 0; // achromatic | |
} else { | |
switch (max) { |