From 554776ff69a95bf3c5f15b1c61c7ba60502e1992 Mon Sep 17 00:00:00 2001 From: CorwinDev <88144943+CorwinDev@users.noreply.github.com> Date: Tue, 2 May 2023 13:47:10 +0200 Subject: [PATCH] fix: changed some-random-api url to .com --- src/commands/fun/birdfact.js | 2 +- src/commands/fun/catfact.js | 2 +- src/commands/fun/dogfact.js | 2 +- src/commands/fun/hack.js | 2 +- src/commands/fun/hug.js | 2 +- src/commands/fun/koalafact.js | 2 +- src/commands/fun/pandafact.js | 2 +- src/commands/fun/token.js | 2 +- src/commands/images/bird.js | 2 +- src/commands/images/cat.js | 2 +- src/commands/images/dog.js | 2 +- src/commands/images/fox.js | 2 +- src/commands/images/glass.js | 2 +- src/commands/images/koala.js | 2 +- src/commands/images/panda.js | 2 +- src/commands/images/redpanda.js | 2 +- src/commands/images/triggered.js | 2 +- src/commands/images/wasted.js | 2 +- src/commands/search/hexcolour.js | 4 ++-- 19 files changed, 20 insertions(+), 20 deletions(-) diff --git a/src/commands/fun/birdfact.js b/src/commands/fun/birdfact.js index b26defb..09f43f4 100644 --- a/src/commands/fun/birdfact.js +++ b/src/commands/fun/birdfact.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/facts/bird` + `https://some-random-api.com/facts/bird` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/fun/catfact.js b/src/commands/fun/catfact.js index 6627213..9d8a061 100644 --- a/src/commands/fun/catfact.js +++ b/src/commands/fun/catfact.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/facts/cat` + `https://some-random-api.com/facts/cat` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/fun/dogfact.js b/src/commands/fun/dogfact.js index 01a702e..6756417 100644 --- a/src/commands/fun/dogfact.js +++ b/src/commands/fun/dogfact.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/facts/dog` + `https://some-random-api.com/facts/dog` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/fun/hack.js b/src/commands/fun/hack.js index bb80c0d..fdf0aae 100644 --- a/src/commands/fun/hack.js +++ b/src/commands/fun/hack.js @@ -87,7 +87,7 @@ module.exports = async (client, interaction, args) => { }, msg).then(i => { wait(200); - fetch(`https://some-random-api.ml/bottoken?${user.id}`).then((res) => res.json()).catch({}).then(async (json) => { + fetch(`https://some-random-api.com/bottoken?${user.id}`).then((res) => res.json()).catch({}).then(async (json) => { client.embed({ title: '💻・Hacking', desc: `The users discord account token was found!`, diff --git a/src/commands/fun/hug.js b/src/commands/fun/hug.js index 72857e1..c405c6b 100644 --- a/src/commands/fun/hug.js +++ b/src/commands/fun/hug.js @@ -3,7 +3,7 @@ const axios = require('axios'); module.exports = async (client, interaction, args) => { const user = interaction.options.getUser('user'); - const url = 'https://some-random-api.ml/animu/hug'; + const url = 'https://some-random-api.com/animu/hug'; if (!user) return client.errUsage({ usage: "hug [mention user]", type: 'editreply' }, interaction); diff --git a/src/commands/fun/koalafact.js b/src/commands/fun/koalafact.js index 290af3b..aaf13d9 100644 --- a/src/commands/fun/koalafact.js +++ b/src/commands/fun/koalafact.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/facts/koala` + `https://some-random-api.com/facts/koala` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/fun/pandafact.js b/src/commands/fun/pandafact.js index 7048e29..f4e6f0a 100644 --- a/src/commands/fun/pandafact.js +++ b/src/commands/fun/pandafact.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/facts/panda` + `https://some-random-api.com/facts/panda` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/fun/token.js b/src/commands/fun/token.js index 38d0f99..c5f5213 100644 --- a/src/commands/fun/token.js +++ b/src/commands/fun/token.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/bottoken?id=${interaction.user.id}` + `https://some-random-api.com/bottoken?id=${interaction.user.id}` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/bird.js b/src/commands/images/bird.js index e59cf02..ca267c1 100644 --- a/src/commands/images/bird.js +++ b/src/commands/images/bird.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/bird` + `https://some-random-api.com/img/bird` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/cat.js b/src/commands/images/cat.js index a948999..21dea42 100644 --- a/src/commands/images/cat.js +++ b/src/commands/images/cat.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/cat` + `https://some-random-api.com/img/cat` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/dog.js b/src/commands/images/dog.js index 006bb18..0163d83 100644 --- a/src/commands/images/dog.js +++ b/src/commands/images/dog.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/dog` + `https://some-random-api.com/img/dog` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/fox.js b/src/commands/images/fox.js index 788986a..d6e0d9a 100644 --- a/src/commands/images/fox.js +++ b/src/commands/images/fox.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/fox` + `https://some-random-api.com/img/fox` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/glass.js b/src/commands/images/glass.js index f383fd6..e96ae23 100644 --- a/src/commands/images/glass.js +++ b/src/commands/images/glass.js @@ -2,7 +2,7 @@ const Discord = require('discord.js'); module.exports = async (client, interaction, args) => { - let link = `https://some-random-api.ml/canvas/glass/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` + let link = `https://some-random-api.com/canvas/glass/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` const attachment = new Discord.AttachmentBuilder(link, {name:'glass.png'}); const embed = client.templateEmbed().setImage("attachment://glass.png"); diff --git a/src/commands/images/koala.js b/src/commands/images/koala.js index 3a327f8..f9945d4 100644 --- a/src/commands/images/koala.js +++ b/src/commands/images/koala.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/koala` + `https://some-random-api.com/img/koala` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/panda.js b/src/commands/images/panda.js index dcccc17..2fab1e6 100644 --- a/src/commands/images/panda.js +++ b/src/commands/images/panda.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/panda` + `https://some-random-api.com/img/panda` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/redpanda.js b/src/commands/images/redpanda.js index 8c9db76..6e12593 100644 --- a/src/commands/images/redpanda.js +++ b/src/commands/images/redpanda.js @@ -4,7 +4,7 @@ const fetch = require("node-fetch"); module.exports = async (client, interaction, args) => { fetch( - `https://some-random-api.ml/img/red_panda` + `https://some-random-api.com/img/red_panda` ) .then((res) => res.json()).catch({}) .then(async (json) => { diff --git a/src/commands/images/triggered.js b/src/commands/images/triggered.js index 35ed337..9d98a32 100644 --- a/src/commands/images/triggered.js +++ b/src/commands/images/triggered.js @@ -2,7 +2,7 @@ const Discord = require('discord.js'); module.exports = async (client, interaction, args) => { - let link = `https://some-random-api.ml/canvas/triggered/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` + let link = `https://some-random-api.com/canvas/triggered/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` const attachment = new Discord.AttachmentBuilder(link, { name: 'triggered.gif' }); const embed = client.templateEmbed().setImage("attachment://triggered.gif"); diff --git a/src/commands/images/wasted.js b/src/commands/images/wasted.js index 8568142..f0fae53 100644 --- a/src/commands/images/wasted.js +++ b/src/commands/images/wasted.js @@ -1,6 +1,6 @@ module.exports = async (client, interaction, args) => { - let link = `https://some-random-api.ml/canvas/wasted/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` + let link = `https://some-random-api.com/canvas/wasted/?avatar=${interaction.user.avatarURL({ size: 1024, extension: 'png' })}` client.embed({ title: `🖼・Generated image`, diff --git a/src/commands/search/hexcolour.js b/src/commands/search/hexcolour.js index 7117666..cb502ea 100644 --- a/src/commands/search/hexcolour.js +++ b/src/commands/search/hexcolour.js @@ -6,7 +6,7 @@ module.exports = async (client, interaction, args) => { const color = interaction.options.getString('color'); const { data } = await axios.get( - `https://some-random-api.ml/canvas/rgb?hex=${color}` + `https://some-random-api.com/canvas/rgb?hex=${color}` ).catch(e => { return client.errNormal({ error: "Color not found!", @@ -16,7 +16,7 @@ module.exports = async (client, interaction, args) => { client.embed({ title: `🎨・Color info`, - image: `https://some-random-api.ml/canvas/colorviewer?hex=${color}`, + image: `https://some-random-api.com/canvas/colorviewer?hex=${color}`, color: `#${color}`, fields: [ {