fix: changed some-random-api url to .com

This commit is contained in:
CorwinDev 2023-05-02 13:47:10 +02:00
parent efb3f9053d
commit 554776ff69
19 changed files with 20 additions and 20 deletions

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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!`,

View file

@ -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);

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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");

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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) => {

View file

@ -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");

View file

@ -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`,

View file

@ -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: [
{