mirror of
https://github.com/System-End/Discord-Bot.git
synced 2026-04-19 18:35:22 +00:00
fix: changed some-random-api url to .com
This commit is contained in:
parent
efb3f9053d
commit
554776ff69
19 changed files with 20 additions and 20 deletions
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/facts/bird`
|
`https://some-random-api.com/facts/bird`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/facts/cat`
|
`https://some-random-api.com/facts/cat`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/facts/dog`
|
`https://some-random-api.com/facts/dog`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -87,7 +87,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
}, msg).then(i => {
|
}, msg).then(i => {
|
||||||
|
|
||||||
wait(200);
|
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({
|
client.embed({
|
||||||
title: '💻・Hacking',
|
title: '💻・Hacking',
|
||||||
desc: `The users discord account token was found!`,
|
desc: `The users discord account token was found!`,
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ const axios = require('axios');
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
const user = interaction.options.getUser('user');
|
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);
|
if (!user) return client.errUsage({ usage: "hug [mention user]", type: 'editreply' }, interaction);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/facts/koala`
|
`https://some-random-api.com/facts/koala`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/facts/panda`
|
`https://some-random-api.com/facts/panda`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
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((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/bird`
|
`https://some-random-api.com/img/bird`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/cat`
|
`https://some-random-api.com/img/cat`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/dog`
|
`https://some-random-api.com/img/dog`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/fox`
|
`https://some-random-api.com/img/fox`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
||||||
|
|
||||||
module.exports = async (client, interaction, args) => {
|
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 attachment = new Discord.AttachmentBuilder(link, {name:'glass.png'});
|
||||||
|
|
||||||
const embed = client.templateEmbed().setImage("attachment://glass.png");
|
const embed = client.templateEmbed().setImage("attachment://glass.png");
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/koala`
|
`https://some-random-api.com/img/koala`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/panda`
|
`https://some-random-api.com/img/panda`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ const fetch = require("node-fetch");
|
||||||
module.exports = async (client, interaction, args) => {
|
module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
fetch(
|
fetch(
|
||||||
`https://some-random-api.ml/img/red_panda`
|
`https://some-random-api.com/img/red_panda`
|
||||||
)
|
)
|
||||||
.then((res) => res.json()).catch({})
|
.then((res) => res.json()).catch({})
|
||||||
.then(async (json) => {
|
.then(async (json) => {
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ const Discord = require('discord.js');
|
||||||
|
|
||||||
module.exports = async (client, interaction, args) => {
|
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 attachment = new Discord.AttachmentBuilder(link, { name: 'triggered.gif' });
|
||||||
|
|
||||||
const embed = client.templateEmbed().setImage("attachment://triggered.gif");
|
const embed = client.templateEmbed().setImage("attachment://triggered.gif");
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
module.exports = async (client, interaction, args) => {
|
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({
|
client.embed({
|
||||||
title: `🖼・Generated image`,
|
title: `🖼・Generated image`,
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
const color = interaction.options.getString('color');
|
const color = interaction.options.getString('color');
|
||||||
|
|
||||||
const { data } = await axios.get(
|
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 => {
|
).catch(e => {
|
||||||
return client.errNormal({
|
return client.errNormal({
|
||||||
error: "Color not found!",
|
error: "Color not found!",
|
||||||
|
|
@ -16,7 +16,7 @@ module.exports = async (client, interaction, args) => {
|
||||||
|
|
||||||
client.embed({
|
client.embed({
|
||||||
title: `🎨・Color info`,
|
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}`,
|
color: `#${color}`,
|
||||||
fields: [
|
fields: [
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue