Update PTB to Test Release 3

PTB Test Release 3 brings fixes and new features to Anitrox.
+ Affection commands now shuffle between different GIF's. May be buggy still
+ Added `leskiss`, Thanks Emi for the suggestion!
~ Rename shutdown to `stop`
This commit is contained in:
Anthony M 2021-01-26 21:58:54 -06:00 committed by GitHub
commit fd9393b790
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 254 additions and 100 deletions

31
commands/ban.js Normal file
View File

@ -0,0 +1,31 @@
const { GuildMember } = require("discord.js");
module.exports = {
name: "ban",
description: "Bans an user, This requires that you have ``BAN_MEMBERS`` or ``ADMINISTRATOR``",
execute(client, message, args) {
const banembed = {
"title": "<:usersuccess:793885338250641469> User Banned",
"description": "User ${user.tag} was banned!",
"color": 5736060,
"fields": [
{
"name": "Reason",
"value": "reason"
}
]
};
const user = message.mentions.users.first();
if (user) {
const member = message.guild.member(user);
if (member) {
member
.ban({
reason: 'reason',
})
.then(() =>
message.channel.send("bye lmao"));
}
}}}

View File

@ -5,7 +5,19 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
// --------------------------------------
const gifchoices = [
"https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif",
"https://media1.tenor.com/images/6d73b0a9cadef5310be4b6160d2f959a/tenor.gif?itemid=12099823",
"https://media.tenor.com/images/2636cf3c8152631b4630bf71757a4afa/tenor.gif",
"https://i.imgur.com/JiFpT5E.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": ":heart: Cuddle",
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +26,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://media.tenor.com/images/7199fdd26fc2c07cd49a34fda3fc37a8/tenor.gif"
"url": gif
}
}

View File

@ -26,7 +26,7 @@ const embed = {
},
{
"name": "Fun Commands",
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom`"
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss`"
},
{
"name": "**Need additional help or want to report an issue?**",

View File

@ -5,7 +5,17 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
const gifchoices = [
"https://media1.tenor.com/images/684efd91473dcfab34cb78bf16d211cf/tenor.gif?itemid=14495459",
"https://cdn.lowgif.com/medium/d26c65f2d66be540-merriberri-graphic-arts-services-requests.gif",
"https://cdn.lowgif.com/full/91e3f30773596637-.gif",
"https://thumbs.gfycat.com/WealthyWastefulBluemorphobutterfly-size_restricted.gif",
"https://data.whicdn.com/images/294164107/original.gif",
"https://media1.tenor.com/images/e5e7779385d003db13396e03b7fd1024/tenor.gif?itemid=16619907"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2);
var gif = (gifchoices[index]);
const embed = {
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +24,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://i.imgur.com/r9aU2xv.gif?noredirect"
"url": gif
}
}

View File

@ -5,7 +5,19 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
// --------------------------------------
const gifchoices = [
"https://thumbs.gfycat.com/SlowGlossyBlackcrappie-small.gif",
"https://media0.giphy.com/media/12VXIxKaIEarL2/giphy.gif",
"https://cutewallpaper.org/21/anime-kiss-girl/Anime-Kissing-GIF-Anime-Kissing-Girl-Discover-Share-GIFs.gif",
"https://i.makeagif.com/media/4-29-2017/orH05W.gif",
"https://31.media.tumblr.com/ea7842aad07c00b098397bf4d00723c6/tumblr_n570yg0ZIv1rikkvpo1_500.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": ":heart: Kiss",
"description": "<@" + taggedUser + ">" + " You have been kissed by <@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +26,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://i.pinimg.com/originals/e3/4e/31/e34e31123f8f35d5c771a2d6a70bef52.gif"
"url": gif
}
}

50
commands/leskiss.js Normal file
View File

@ -0,0 +1,50 @@
const { Message } = require("discord.js");
const { execute } = require("./info");
module.exports = {
name: "leskiss",
description: "Lesbian kiss <:lesbian:803831629428686849>",
execute(client, message, args) {
const messageAuthor = message.messageAuthor
const taggedUser = message.mentions.users.first();
// --------------------------------------
const gifchoices = [
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803833959338475550/gif12.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834034135236628/gif9.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834082034843658/gif18.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834094063583302/gif8.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834099869024296/gif10.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834132035665950/gif16.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834146413084713/gif13.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834249425715210/gif22.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834323898990592/gif11.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834328848793650/gif14.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834391226351676/gif17.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834498714304522/gif15.gif",
"https://cdn.discordapp.com/attachments/793537380330111028/803834514269798460/gif19.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": ":heart: <:lesbian:803831629428686849> Kiss",
"description": "<@" + taggedUser + ">" + " You have been kissed by <@" + messageAuthor + ">! <:lesbian:803831629428686849>",
"color": 8311585,
"footer": {
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": gif
}
}
message.channel.send({ embed: embed });
}
}

View File

@ -5,7 +5,21 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
// --------------------------------------
const gifchoices = [
"https://i.imgur.com/Ns1RBzX.gif",
"https://cdn.lowgif.com/full/2027501b8fa5225c-.gif",
"https://i.gifer.com/36Nx.gif",
"https://media.tenor.com/images/e8bbe712a5f36bbe9545930894b08bf9/tenor.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 1);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": "<:BlobNomBlob:801241117919805510> Nom",
"description": "<@" + taggedUser + "> You have been nommed by <@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +28,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://data.whicdn.com/images/279560594/original.gif"
"url": gif
}
}

View File

@ -5,7 +5,20 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
// --------------------------------------
const gifchoices = [
"https://cdn.discordapp.com/attachments/803658122299572255/803708174293008474/tenor.gif",
"https://community.gamepress.gg/uploads/default/original/3X/0/a/0a762099c5ad6de9ca5f13dd22a7e45884a99eb3.gif",
"https://media1.giphy.com/media/ARSp9T7wwxNcs/giphy.gif"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": "<:pats:801238281286713355> Pat",
"description": "<@" + taggedUser + "> You have been patted by <@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +27,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://media1.giphy.com/media/ARSp9T7wwxNcs/giphy.gif"
"url": gif
}
}

View File

@ -5,7 +5,20 @@ module.exports = {
execute(client, message, args) {
const messageAuthor = message.author
const taggedUser = message.mentions.users.first();
const embed = {
// --------------------------------------
const gifchoices = [
"https://i.pinimg.com/originals/b4/95/fb/b495fb19f4b9a1b04f48297b676c497b.gif",
"https://i.imgur.com/H7Ok5tn.gif",
"https://media1.tenor.com/images/8fe23ec8e2c5e44964e5c11983ff6f41/tenor.gif?itemid=5600215"
];
const index = Math.floor(Math.random() * (gifchoices.length - 1) + 2);
var gif = (gifchoices[index]);
// ---------------------------------------
const embed = {
"title": "👉 Poke!",
"description": "<@" + taggedUser + "> You have been poked by <@" + messageAuthor + ">!",
"color": 8311585,
@ -14,7 +27,7 @@ module.exports = {
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
},
"image": {
"url": "https://i.gifer.com/4IdP.gif"
"url": gif
}
}

View File

@ -9,10 +9,7 @@ module.exports = {
client.destroy()
.catch(console.error)
.then
console.log("Restarting!")
console.log("Getting ready")
console.log("Ready to start!")
client.login(token);
setTimeout(() => { client.login(token); }, 3000);
message.channel.send("<:NyabotSuccess:697211376740859914> Restart Successful")
console.log("All systems go")
} else {

View File

@ -1,6 +1,6 @@
module.exports = {
name: 'shutdown',
name: 'stop',
description: '(Owner Only) Shuts down the bot.',
execute(client, message, args) {
if (message.author.id == 309427567004483586) {

166
start.js
View File

@ -1,82 +1,84 @@
console.log('Preparing to start!')
const fs = require('fs');
const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const os = require("os")
const version = "Test Release 2,";
const release = "anitrox_ptb"
console.log('Starting!')
const client = new Discord.Client();
client.commands = new Discord.Collection();
const activities_list = [
"with n!help",
"Where am I?",
"with Sylveons!",
"on my host's hard disk",
"with Happy",
"HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY",
"Running on " + process.platform + " / " + os.version() + "!",
"with the tea machine",
"with Borked Computers",
"on Happy's main PC- wait shoot she's coming",
"btw I use Debian linux",
"Watching you",
"Running " + release + " Version " + version,
"in Incognito Mode- wait what"
];
const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png"
const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
for (const file of commandFiles) {
const command = require(`./commands/${file}`);
client.commands.set(command.name, command);
}
client.on("error", (e) => console.error(e));
client.on("warn", (e) => console.warn(e));
client.on("debug", (e) => console.info(e))
client.once('ready', () => {
console.log('All systems go.');
});
setInterval(() => {
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
client.user.setActivity(activities_list[index]);
}, 20000);
client.on('message', message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if (!client.commands.has(command)) return;
try {
client.commands.get(command).execute(client, message, args);
} catch (error) {
const embed = {
"title": "<:NyabotError:697145462347661412> **Well that happened...**",
"color": 13632027,
"footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
},
"fields": [
{
"name": "**What Happened?**",
"value": "The command you tried to run failed to execute due to an error."
},
{
"name": "Error Info",
"value": error.message
}
]
};
message.channel.send({ embed });
}
});
client.login(token);
console.log('Preparing to start!')
const fs = require('fs');
const Discord = require('discord.js');
const { prefix, token } = require('./config.json');
const os = require("os")
const version = "Test Release 3, build 439";
const release = "anitrox_ptb"
console.log('Starting!')
const client = new Discord.Client();
client.commands = new Discord.Collection();
const activities_list = [
"with n!help",
"Where am I?",
"with Sylveons!",
"on my host's hard disk",
"with Happy",
"HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY",
"Running on " + process.platform + " / " + os.version() + "!",
"with the tea machine",
"with Borked Computers",
"on Happy's main PC- wait shoot she's coming",
"btw I use Debian linux",
"Watching you",
"Running " + release + " Version " + version,
"in Incognito Mode- wait what"
];
const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png"
const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
for (const file of commandFiles) {
const command = require(`./commands/${file}`);
client.commands.set(command.name, command);
}
client.on("error", (e) => console.error(e));
client.on("warn", (e) => console.warn(e));
client.on("debug", (e) => console.info(e))
client.once('ready', () => {
console.log('All systems go.');
});
setInterval(() => {
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
client.user.setActivity(activities_list[index]);
}, 20000);
client.on('message', message => {
if (!message.content.startsWith(prefix) || message.author.bot) return;
const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase();
if (!client.commands.has(command)) return;
try {
client.commands.get(command).execute(client, message, args);
} catch (error) {
const embed = {
"title": "<:NyabotError:697145462347661412> **Well that happened...**",
"color": 13632027,
"footer": {
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
},
"fields": [
{
"name": "**What Happened?**",
"value": "The command you tried to run failed to execute due to an error."
},
{
"name": "Error Info",
"value": error.message
}
]
};
message.channel.send({ embed });
}
});
client.login(token);