commit
4c6177aad2
|
@ -3,4 +3,24 @@ module.exports = {
|
|||
name: "bonk",
|
||||
description: "Bonks an user!",
|
||||
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 = {
|
||||
"title": "<:NyabotInfo:697145463350231040> **Help? HELP!** ",
|
||||
"color": 9540095,
|
||||
"description": "<:NyabotWarning:697145463194910791> Not all commands have been implemented. and may be removed without warning",
|
||||
"footer": {
|
||||
"text": "Some commands are hidden for dev-only. | Anitrox © IDeletedSystem64 2018-2021"
|
||||
},
|
||||
|
@ -26,6 +27,10 @@ const embed = {
|
|||
{
|
||||
"name": "Fun Commands",
|
||||
"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 = {
|
||||
"title": "<:NyabotInfo:697145463350231040> Information about projectanitrox",
|
||||
"description": "Everything you've ever wanted to know about projectanitrox!",
|
||||
"url": "https://discordapp.com",
|
||||
"color": 11038194,
|
||||
"footer": {
|
||||
"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",
|
||||
"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",
|
||||
"value": process.platform + " / " + os.version()
|
||||
|
|
|
@ -4,9 +4,6 @@ module.exports = {
|
|||
name: 'invite',
|
||||
description: 'Sends invite to add the bot to a server.',
|
||||
execute(client, message) {
|
||||
if (message.author.id == 309427567004483586) {
|
||||
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");
|
||||
message.channel.send("PTB: https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303");
|
||||
},
|
||||
};
|
|
@ -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!",
|
||||
"token": "<token>",
|
||||
"ownerID": "309427567004483586"
|
||||
}
|
||||
{
|
||||
"prefix": "n!",
|
||||
|
||||
"token": "<token>",
|
||||
"ownerID": "309427567004483586"
|
||||
}
|
||||
|
|
158
start.js
158
start.js
|
@ -1,78 +1,80 @@
|
|||
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 = "Public Test Release 1";
|
||||
const release = "anitrox_ptb"
|
||||
const buildno = "430"
|
||||
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"
|
||||
];
|
||||
|
||||
|
||||
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]);
|
||||
}, 10000);
|
||||
|
||||
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> ***An error occurred!***",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"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 = "Public Test Release 1";
|
||||
const release = "anitrox_ptb"
|
||||
const buildno = "430"
|
||||
|
||||
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"
|
||||
];
|
||||
|
||||
|
||||
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> **An error occurred!**",
|
||||
"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"
|
||||
},
|
||||
{
|
||||
"name": "Error Info",
|
||||
"value": error.message
|
||||
}
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
}
|
||||
});
|
||||
|
||||
client.login(token);
|
||||
|
|
Reference in New Issue