commit
4c6177aad2
|
@ -3,4 +3,24 @@ module.exports = {
|
||||||
name: "bonk",
|
name: "bonk",
|
||||||
description: "Bonks an user!",
|
description: "Bonks an user!",
|
||||||
execute(client, message, args) {
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
|
||||||
|
const embed = {
|
||||||
|
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
||||||
|
"description": taggedUser + " You have been bonked by " + messageAuthor + "!",
|
||||||
|
"color": 3272562,
|
||||||
|
"footer": {
|
||||||
|
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||||
|
},
|
||||||
|
"image": {
|
||||||
|
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "cuddle",
|
||||||
|
description: "Cuddle an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": ":heart: Cuddle",
|
||||||
|
"description": taggedUser + " You have been cuddled by " + messageAuthor + "!",
|
||||||
|
"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": "https://media.tenor.com/images/7199fdd26fc2c07cd49a34fda3fc37a8/tenor.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -7,6 +7,7 @@ module.exports = {
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:NyabotInfo:697145463350231040> **Help? HELP!** ",
|
"title": "<:NyabotInfo:697145463350231040> **Help? HELP!** ",
|
||||||
"color": 9540095,
|
"color": 9540095,
|
||||||
|
"description": "<:NyabotWarning:697145463194910791> Not all commands have been implemented. and may be removed without warning",
|
||||||
"footer": {
|
"footer": {
|
||||||
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"
|
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"
|
||||||
},
|
},
|
||||||
|
@ -26,6 +27,10 @@ const embed = {
|
||||||
{
|
{
|
||||||
"name": "Fun Commands",
|
"name": "Fun Commands",
|
||||||
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom`"
|
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom`"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "**Need additional help or want to report an issue?**",
|
||||||
|
"value": "https://discord.gg/grebRGsBZ3"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "hug",
|
||||||
|
description: "Hugs an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
|
||||||
|
"description": taggedUser + " You have been hugged by " + messageAuthor + "!",
|
||||||
|
"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": "https://i.imgur.com/r9aU2xv.gif?noredirect"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -31,7 +31,6 @@ const version = ("DEV1.0")
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:NyabotInfo:697145463350231040> Information about projectanitrox",
|
"title": "<:NyabotInfo:697145463350231040> Information about projectanitrox",
|
||||||
"description": "Everything you've ever wanted to know about projectanitrox!",
|
"description": "Everything you've ever wanted to know about projectanitrox!",
|
||||||
"url": "https://discordapp.com",
|
|
||||||
"color": 11038194,
|
"color": 11038194,
|
||||||
"footer": {
|
"footer": {
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
|
@ -73,10 +72,7 @@ const version = ("DEV1.0")
|
||||||
"name": "<:cpu:793672442056802354> CPU Type",
|
"name": "<:cpu:793672442056802354> CPU Type",
|
||||||
"value": process.arch
|
"value": process.arch
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"name": "<:memory:793536677737136178> **System Memory Usage**",
|
|
||||||
"value": (Math.round(os.memoryUsage / 1024 / 1024 * 100) / 100) + " MiB of " + (Math.round(os.freemem / 1024 / 1024 * 100) / 100)
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"name": "<:hostos:793866961675223090> OS Type",
|
"name": "<:hostos:793866961675223090> OS Type",
|
||||||
"value": process.platform + " / " + os.version()
|
"value": process.platform + " / " + os.version()
|
||||||
|
|
|
@ -4,9 +4,6 @@ module.exports = {
|
||||||
name: 'invite',
|
name: 'invite',
|
||||||
description: 'Sends invite to add the bot to a server.',
|
description: 'Sends invite to add the bot to a server.',
|
||||||
execute(client, message) {
|
execute(client, message) {
|
||||||
if (message.author.id == 309427567004483586) {
|
message.channel.send("PTB: https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303");
|
||||||
message.channel.send('Link: http://bit.ly/39ZcG2K');
|
|
||||||
} else
|
|
||||||
message.channel.send("<:NyabotWarning:677296901590351919> ``Sorry, The bot is not public. Contact the dev if you'd like to have it in your server");
|
|
||||||
},
|
},
|
||||||
};
|
};
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "kiss",
|
||||||
|
description: "Kisses an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": ":heart: Kiss",
|
||||||
|
"description": taggedUser + " You have been kissed by " + messageAuthor + "!",
|
||||||
|
"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": "https://i.pinimg.com/originals/e3/4e/31/e34e31123f8f35d5c771a2d6a70bef52.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "nom",
|
||||||
|
description: "Noms an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": "<:BlobNomBlob:801241117919805510> Nom",
|
||||||
|
"description": taggedUser + " You have been nommed by " + messageAuthor + "!",
|
||||||
|
"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": "https://data.whicdn.com/images/279560594/original.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "pat",
|
||||||
|
description: "Pats an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": "<:pats:801238281286713355> Pat",
|
||||||
|
"description": taggedUser + " You have been patted by " + messageAuthor + "!",
|
||||||
|
"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": "https://media1.giphy.com/media/ARSp9T7wwxNcs/giphy.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "poke",
|
||||||
|
description: "Pokes an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": "👉 Poke!",
|
||||||
|
"description": taggedUser + " You have been poked by " + messageAuthor + "!",
|
||||||
|
"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": "https://i.gifer.com/4IdP.gif"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
module.exports = {
|
||||||
|
|
||||||
|
name: "slap",
|
||||||
|
description: "Slaps an user!",
|
||||||
|
execute(client, message, args) {
|
||||||
|
const messageAuthor = message.author
|
||||||
|
const taggedUser = message.mentions.users.first();
|
||||||
|
const embed = {
|
||||||
|
"title": ":anger: Slap",
|
||||||
|
"description": taggedUser + " You have been slapped by " + messageAuthor + "!",
|
||||||
|
"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": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
message.channel.send({ embed: embed });
|
||||||
|
}
|
||||||
|
}
|
11
config.json
11
config.json
|
@ -1,5 +1,6 @@
|
||||||
{
|
{
|
||||||
"prefix": "np!",
|
"prefix": "n!",
|
||||||
"token": "<token>",
|
|
||||||
"ownerID": "309427567004483586"
|
"token": "<token>",
|
||||||
}
|
"ownerID": "309427567004483586"
|
||||||
|
}
|
||||||
|
|
158
start.js
158
start.js
|
@ -1,78 +1,80 @@
|
||||||
console.log('Preparing to start!')
|
console.log('Preparing to start!')
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const Discord = require('discord.js');
|
const Discord = require('discord.js');
|
||||||
const { prefix, token } = require('./config.json');
|
const { prefix, token } = require('./config.json');
|
||||||
const os = require("os")
|
const os = require("os")
|
||||||
const version = "Public Test Release 1";
|
|
||||||
const release = "anitrox_ptb"
|
const version = "Public Test Release 1";
|
||||||
const buildno = "430"
|
const release = "anitrox_ptb"
|
||||||
console.log('Starting!')
|
const buildno = "430"
|
||||||
const client = new Discord.Client();
|
|
||||||
client.commands = new Discord.Collection();
|
console.log('Starting!')
|
||||||
const activities_list = [
|
const client = new Discord.Client();
|
||||||
"with n!help",
|
client.commands = new Discord.Collection();
|
||||||
"Where am I?",
|
const activities_list = [
|
||||||
"with Sylveons!",
|
"with n!help",
|
||||||
"on my host's hard disk",
|
"Where am I?",
|
||||||
"with Happy",
|
"with Sylveons!",
|
||||||
"HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY",
|
"on my host's hard disk",
|
||||||
"Running on " + process.platform + " / " + os.version() + "!",
|
"with Happy",
|
||||||
"with the tea machine",
|
"HAAAAAAAAPPPPPPPYYYYYYYYYYYYYYYYYYYY",
|
||||||
"with Borked Computers",
|
"Running on " + process.platform + " / " + os.version() + "!",
|
||||||
"on Happy's main PC- wait shoot she's coming",
|
"with the tea machine",
|
||||||
"btw I use Debian linux"
|
"with Borked Computers",
|
||||||
];
|
"on Happy's main PC- wait shoot she's coming",
|
||||||
|
"btw I use Debian linux"
|
||||||
|
];
|
||||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
|
||||||
|
|
||||||
for (const file of commandFiles) {
|
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
const command = require(`./commands/${file}`);
|
|
||||||
client.commands.set(command.name, command);
|
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.on("error", (e) => console.error(e));
|
||||||
client.once('ready', () => {
|
client.on("warn", (e) => console.warn(e));
|
||||||
console.log('All systems go.');
|
client.on("debug", (e) => console.info(e))
|
||||||
});
|
client.once('ready', () => {
|
||||||
setInterval(() => {
|
console.log('All systems go.');
|
||||||
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
});
|
||||||
client.user.setActivity(activities_list[index]);
|
setInterval(() => {
|
||||||
}, 10000);
|
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
||||||
|
client.user.setActivity(activities_list[index]);
|
||||||
client.on('message', message => {
|
}, 20000);
|
||||||
if (!message.content.startsWith(prefix) || message.author.bot) return;
|
|
||||||
|
client.on('message', message => {
|
||||||
const args = message.content.slice(prefix.length).split(/ +/);
|
if (!message.content.startsWith(prefix) || message.author.bot) return;
|
||||||
const command = args.shift().toLowerCase();
|
|
||||||
|
const args = message.content.slice(prefix.length).split(/ +/);
|
||||||
if (!client.commands.has(command)) return;
|
const command = args.shift().toLowerCase();
|
||||||
|
|
||||||
try {
|
if (!client.commands.has(command)) return;
|
||||||
client.commands.get(command).execute(client, message, args);
|
|
||||||
} catch (error) {
|
try {
|
||||||
const embed = {
|
client.commands.get(command).execute(client, message, args);
|
||||||
"title": "<:NyabotError:697145462347661412> ***An error occurred!***",
|
} catch (error) {
|
||||||
"color": 13632027,
|
const embed = {
|
||||||
"footer": {
|
"title": "<:NyabotError:697145462347661412> **An error occurred!**",
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
"color": 13632027,
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
"footer": {
|
||||||
},
|
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
"fields": [
|
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
||||||
{
|
},
|
||||||
"name": "**What Happened?**",
|
"fields": [
|
||||||
"value": "The command you tried to run failed to execute"
|
{
|
||||||
},
|
"name": "**What Happened?**",
|
||||||
{
|
"value": "The command you tried to run failed to execute"
|
||||||
"name": "Error Info",
|
},
|
||||||
"value": error.message
|
{
|
||||||
}
|
"name": "Error Info",
|
||||||
]
|
"value": error.message
|
||||||
};
|
}
|
||||||
message.channel.send({ embed });
|
]
|
||||||
}
|
};
|
||||||
});
|
message.channel.send({ embed });
|
||||||
|
}
|
||||||
client.login(token);
|
});
|
||||||
|
|
||||||
|
client.login(token);
|
||||||
|
|
Reference in New Issue