create separate channels for anime updates

master
Kit Kasune 3 years ago
parent f67ff22d82
commit a02ea2bed1
  1. 8
      commands/anime/anime.js
  2. 4
      commands/anime/animeimage.js
  3. 2
      commands/anime/animenick.js
  4. 8
      commands/anime/char.js
  5. 4
      commands/anime/charimage.js
  6. 2
      commands/anime/charnick.js

@ -178,7 +178,7 @@ module.exports = {
} }
else {amEmbed.addField("ID", options.id);} else {amEmbed.addField("ID", options.id);}
amEmbed.setAuthor({name: !queue ? "Anime Added" : "Anime Submitted", iconURL: message.author.avatarURL()}); amEmbed.setAuthor({name: !queue ? "Anime Added" : "Anime Submitted", iconURL: message.author.avatarURL()});
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({embeds: [amEmbed]})); client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177823630762014').send({embeds: [amEmbed]}));
if (!queue) {options.queued = false;} if (!queue) {options.queued = false;}
await new AniData(options).save(); await new AniData(options).save();
return message.author.send(`Your anime has been ${!queue ? "added" : "submitted"}`); return message.author.send(`Your anime has been ${!queue ? "added" : "submitted"}`);
@ -328,7 +328,7 @@ module.exports = {
ch.save(); ch.save();
client.misc.cache.anime.set(nn, ch.id); client.misc.cache.anime.set(nn, ch.id);
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177814638186516').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -419,7 +419,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -439,7 +439,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

@ -95,7 +95,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -115,7 +115,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

@ -62,7 +62,7 @@ module.exports = {
ch.save(); ch.save();
client.misc.cache.anime.set(nn, ch.id); client.misc.cache.anime.set(nn, ch.id);
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177814638186516').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

@ -215,7 +215,7 @@ module.exports = {
aniData.markModified('characters'); aniData.markModified('characters');
aniData.save(); aniData.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({embeds: [amEmbed]})); client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177797705781308').send({embeds: [amEmbed]}));
am.delete().catch(() => {}); am.delete().catch(() => {});
return dmch.send(`Your character has been ${!queue ? "added" : "submitted"}`); return dmch.send(`Your character has been ${!queue ? "added" : "submitted"}`);
} else { } else {
@ -413,7 +413,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -433,7 +433,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -550,7 +550,7 @@ module.exports = {
ch.save(); ch.save();
client.misc.cache.chars.set(nn, ch.id); client.misc.cache.chars.set(nn, ch.id);
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177814638186516').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

@ -94,7 +94,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})
@ -114,7 +114,7 @@ module.exports = {
ch.markModified('images'); ch.markModified('images');
ch.save(); ch.save();
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177850239422494').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

@ -61,7 +61,7 @@ module.exports = {
ch.save(); ch.save();
client.misc.cache.chars.set(nn, ch.id); client.misc.cache.chars.set(nn, ch.id);
} }
client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('817466729293938698').send({ client.guilds.fetch('762707532417335296').then(g => g.channels.cache.get('932177814638186516').send({
embeds: [ embeds: [
new Discord.MessageEmbed() new Discord.MessageEmbed()
.setAuthor({name: message.author.username, iconURL: message.author.avatarURL()}) .setAuthor({name: message.author.username, iconURL: message.author.avatarURL()})

Loading…
Cancel
Save