commit
d2a648ceb5
16
README.md
16
README.md
|
@ -1,5 +1,13 @@
|
|||
|
||||
# Anitrox Dev Branch
|
||||
# anitrox_unstable
|
||||
This is for the ultra-fresh builds of Anitrox and is **very** unstable. It is only avaliable in Anitrox Central.
|
||||
# These builds are UNSUPPORTED and you will not be able to recieve support if there's a problem. It's best you wait for a new build if you're having a problem.
|
||||
# Anitrox Dev Branch (anitrox_unstable)
|
||||
This is the development branch for Anitrox, If you want those fresh hot Anitrox builds right from the oven, you've come to the right place!
|
||||
# Dependencies to get started
|
||||
To begin, you will need to satisfy the following dependencies:
|
||||
Node.JS: 14
|
||||
npm: 6.14
|
||||
# Let's get this ~~party~~ bot started!
|
||||
For first time start up, You will need to run ``npm install`` to install the needed npm packages.
|
||||
Afterwards fill out the ``config-example.json`` and rename it to ``config.json``, then just run ``node start.js``!
|
||||
⚠️ If you don't specify the Owner ID, Some commands such as the bot controls will be unusable!
|
||||
# Support
|
||||
Anitrox isn't really supported but you can get help from the Discord server if you need any: discord.gg/5nQtMNpf43
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
# Anitrox Command List
|
||||
<> = Optionable
|
||||
<br>
|
||||
[] = Required
|
||||
|
||||
|Command|Arguments |Description |
|
||||
|-------|----------|------------|
|
||||
|Help |none |Help? Help!!|
|
||||
|8ball |[Question]|Ask a question, Any question! |
|
||||
|avatar |\<Member\> |Get a users beautiful avatar |
|
||||
|bonk |[Member] | Bonk, no horny. |
|
||||
|cheese |\<Member\>| Cheese.|
|
||||
|cuddle |[Member] | Cuddle someone! |
|
||||
|hug |[Member] | Hug someone! |
|
||||
|info |none | Information about the bot and host.
|
||||
|invite |none | Invite Anitrox to your server!
|
||||
|kiss |[Member] | Kiss someone! |
|
||||
|leskiss|[Member] | Lesbain kiss (Suggested by Emi)
|
||||
|lick |[Member] | Did you just lick me!?
|
||||
|nom |[Member] | Nom someone or something
|
||||
|opensource| none | Source code for Anitrox
|
||||
|pat |[Member] | Pat someone!
|
||||
|ping |none | Ping Elon Musk! or Mars! nah jk, Discord.
|
||||
|poke |[Member] | Poke someone!
|
||||
|slap |[Member] | Slap someone :(
|
||||
|snuggle|[Member] | Snuggle someone!
|
||||
|uinfo |[Member] | Information about an user
|
|
@ -1,31 +1,42 @@
|
|||
module.exports = {
|
||||
name: '8ball',
|
||||
description: 'Ask Anitrox a question, any question! and they will answer it!',
|
||||
syntax: ["[Question]"],
|
||||
execute(client, message, args) {
|
||||
const {footerTxt} = require('../config.json');
|
||||
const answers = [
|
||||
"Heck no!",
|
||||
"Are you crazy!? No!",
|
||||
"Don't even think about it.",
|
||||
"No! You might bork something!",
|
||||
"Heck yeah",
|
||||
"YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE",
|
||||
"I don't think so.",
|
||||
"Let me think about it first. No.",
|
||||
"Let me think about it first. Yeah",
|
||||
"Let me think about it first. Maybe",
|
||||
"I don't know man",
|
||||
"Maybe",
|
||||
"I'm not sure",
|
||||
"Ask again",
|
||||
"YEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEE!!!",
|
||||
"Definitely!",
|
||||
"Go for it! :smile:"
|
||||
// This should have a 50/50 amount of yes and no answers for equality even though anitrox doesn't seem to care 🙃
|
||||
"Go for it! :smile:",
|
||||
"Good idea!",
|
||||
"Sure"
|
||||
]
|
||||
const index = Math.floor(Math.random() * (answers.length - 1) + 1);
|
||||
const index = Object.keys(answers)[Math.floor(Math.random() * Object.keys(answers).length)];
|
||||
var question = args.slice(0).join(" ")
|
||||
var answer = (answers[index]);
|
||||
console.log(args);
|
||||
|
||||
if (!question) {
|
||||
const embed = {
|
||||
"title": "<:AnitroxError:809651936563429416> Well that happened...",
|
||||
"description": "You need to specify a question!",
|
||||
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
|
||||
"description": "You need to ask a",
|
||||
"color": 13632027,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "placeholder"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -34,8 +45,8 @@ module.exports = {
|
|||
"description": "Your question: **" + question + "**",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "placeholder"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
|
||||
"fields": [
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
const { Message } = require('discord.js');
|
||||
const fs = require('fs');
|
||||
module.exports = {
|
||||
name: 'addstatus',
|
||||
description: 'Adds a new custom status to Anitrox',
|
||||
async execute(message, args) {
|
||||
const embed = {
|
||||
"title": "<:AnitroxSuccess:809651936819019796> Status Added",
|
||||
"color": 3585665,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Successfully added status!",
|
||||
"value": "Added status " + args.slice(0,2)
|
||||
}
|
||||
]
|
||||
};
|
||||
const statuses = JSON.parse((await fs.promises.readFile('./statuses.json')).toString())
|
||||
statuses.push(args.slice(0,2))
|
||||
await fs.promises.writeFile('./statuses.json', JSON.stringify(ranges));
|
||||
Message.channel.send( {embed} )
|
||||
}
|
||||
}
|
|
@ -2,15 +2,17 @@ module.exports = {
|
|||
name: "avatar",
|
||||
description: "Gets a users avatar.",
|
||||
execute(client, message, args) {
|
||||
const user = message.mentions.users.first()
|
||||
user = message.mentions.users.first()
|
||||
if (!user) user = message.author
|
||||
|
||||
const {footerTxt} = require('../config.json');
|
||||
|
||||
const embed = {
|
||||
"title": ":frame_photo: " + user.username + "'s Avatar",
|
||||
"description": "Here is " + user.username + "'s avatar!",
|
||||
"title": ":frame_photo: " + user.username + "'s Beautiful Avatar!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": user.displayAvatarURL()
|
||||
|
|
|
@ -1,31 +0,0 @@
|
|||
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"));
|
||||
|
||||
}
|
||||
}}}
|
|
@ -3,8 +3,8 @@ module.exports = {
|
|||
name: "bonk",
|
||||
description: "Bonks an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const taggedUser = message.mentions.users.first();
|
||||
const {footerTxt} = require('../config.json');
|
||||
const errorembed = {
|
||||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
|
@ -27,11 +27,11 @@ module.exports = {
|
|||
|
||||
const embed = {
|
||||
"title": "<a:SylvBonk:801185845847130113> Bonk",
|
||||
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + messageAuthor + ">!",
|
||||
"description": "<@" + taggedUser + ">" + " You have been bonked by <@" + message.author + ">!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/793537380330111028/801194481549312060/HappyBONK.gif"
|
||||
|
|
|
@ -1,16 +0,0 @@
|
|||
module.exports = {
|
||||
name: "buttontest",
|
||||
description: "buttontest",
|
||||
execute(client, message, args) {
|
||||
const buttonembed = {
|
||||
"title": "buttontest",
|
||||
"description": "anitrox buttontest",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://cdn.discordapp.com/embed/avatars/0.png",
|
||||
"text": "footertext"
|
||||
}
|
||||
};
|
||||
message.channel.send({ embed: buttonembed });
|
||||
}
|
||||
}
|
|
@ -3,10 +3,8 @@ module.exports = {
|
|||
name: "cheese",
|
||||
description: "Cheese an user, or run just ``n!cheese`` for a surprise :eyes:",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const taggedUser = message.mentions.users.first();
|
||||
//---------------------------------
|
||||
|
||||
const {footerTxt} = require('../config.json');
|
||||
|
||||
if(!taggedUser) {
|
||||
return message.channel.send("*slams cheese on desk* Cheese. https://www.youtube.com/watch?v=Or4IE8fkpn4");
|
||||
|
@ -16,11 +14,11 @@ module.exports = {
|
|||
|
||||
const embed = {
|
||||
"title": ":cheese: Cheesed",
|
||||
"description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + messageAuthor + ">!",
|
||||
"description": "<@" + taggedUser + ">" + " You got cheesed by " + "<@" + message.author + ">!",
|
||||
"color": 16312092,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/812867714368536636/R06325af354168febcafd96b8328b7590.png"
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
module.exports = {
|
||||
name: 'serversetup',
|
||||
description: 'Sets up channels and roles for your newly created server',
|
||||
execute(client, message, args) {
|
||||
const start = {
|
||||
"title": "<a:AnitroxWorking:697147309531594843> Beginning Server Setup...",
|
||||
"description": "This will set up the following:\nStaff Roles\nStaff Channels\nServer Channels\nThis will not set up:\nAdvertisements (if applicable)\nModeration bots\n\nClick :white_check_mark: to Continue\nClick :x: to Cancel",
|
||||
"color": 12390624,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
}
|
||||
};
|
||||
// Embeds
|
||||
|
||||
message.channel.send({ embed: start });
|
||||
}
|
||||
}
|
||||
// This ain't even finished yet lmao
|
|
@ -3,9 +3,8 @@ module.exports = {
|
|||
name: "cuddle",
|
||||
description: "Cuddle an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
const {footerTxt} = require('../config.json');
|
||||
// --------------------------------------
|
||||
const gifchoices = [
|
||||
"https://i.pinimg.com/originals/4d/89/d7/4d89d7f963b41a416ec8a55230dab31b.gif",
|
||||
|
@ -22,11 +21,11 @@ module.exports = {
|
|||
}
|
||||
const embed = {
|
||||
"title": ":heart: Cuddle",
|
||||
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + messageAuthor + ">!",
|
||||
"description": "<@" + taggedUser + ">" + " You have been cuddled by " + "<@" + message.author + ">!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -1,44 +1,30 @@
|
|||
module.exports = {
|
||||
|
||||
name: 'help',
|
||||
description: '',
|
||||
execute(client, message, args) {
|
||||
|
||||
name: 'help',
|
||||
description: 'Get help on anything from commands, to what the bot does! just not your homework..',
|
||||
syntax: '<Command>',
|
||||
|
||||
const messageAuthor = message.author
|
||||
const embed = {
|
||||
"title": "<:NyabotInfo:697145463350231040> **HELP** " + messageAuthor.username + " **THE BOT IS ON FIRE!** ",
|
||||
"color": 9442302,
|
||||
"description": "More commands are soon to come, stay tuned!",
|
||||
"footer": {
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Utility Commands",
|
||||
"value": "`help` ``info`` ``userinfo`` ``ping`` ``invite`` ``avatar``"
|
||||
},
|
||||
{
|
||||
"name": "Server Management Commands",
|
||||
"value": "`setnick`"
|
||||
},
|
||||
{
|
||||
"name": "Action Commands",
|
||||
"value": "`hug` `poke` `bonk` `slap` `pat` `kiss` `lick` `cuddle` `nom` `leskiss` `snuggle`"
|
||||
},
|
||||
{
|
||||
"name": "**...or is the bot actually on fire? Come here for help and support!**",
|
||||
"value": "bit.ly/anitrox-help"
|
||||
},
|
||||
{
|
||||
"name": "**Or you can view the bot progress, known issues, and planned features!**",
|
||||
"value": "bit.ly/anitrox-trello"
|
||||
},
|
||||
{
|
||||
"name": "<:AnitroxInfo:809651936831733791> **The bot isn't yet fully finished. There's more to come! if I don't rewrite from scratch that is 😛**"
|
||||
}
|
||||
execute(client, message, args) {
|
||||
const {footerTxt} = require('../config.json');
|
||||
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
}
|
||||
};
|
||||
const Embed = {
|
||||
"title": "HELP! SEYMOUR! THE BOT IS ON FIRE!",
|
||||
"description": "Get help on anything from commands, to what the bot does! just not your homework..",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt + " | No mother it's just the northern lights"
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "Command List",
|
||||
"value": "[Click here!](https://github.com/IDeletedSystem64/anitrox/blob/dev/commands.md)"
|
||||
},
|
||||
{
|
||||
"name": "...Or is the bot actually on fire?",
|
||||
"value": "Join the [support server!](https://discord.gg/grebRGsBZ3)"
|
||||
}
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed: Embed });
|
||||
}};
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "hug",
|
||||
description: "Hugs an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
const gifchoices = [
|
||||
"https://cdn.discordapp.com/attachments/803658122299572255/807670647920001044/hug2.gif",
|
||||
|
@ -17,8 +17,8 @@ module.exports = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": message.author.displayAvatarURL()
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -37,11 +37,11 @@ module.exports = {
|
|||
var gif = (gifchoices[index]);
|
||||
const embed = {
|
||||
"title": "<a:ABlobCatHuggle:801232248035999784> Hug",
|
||||
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + messageAuthor + ">!",
|
||||
"description": "<@" + taggedUser + ">" + " You have been hugged by " + "<@" + message.author + ">!",
|
||||
"color": 8311585,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -1,10 +1,11 @@
|
|||
const { Client, ClientUser } = require('discord.js');
|
||||
|
||||
module.exports = {
|
||||
|
||||
name: 'info',
|
||||
description: 'Shows bot and host information',
|
||||
execute(client, message, args) {
|
||||
const { build, release } = require('../config.json');
|
||||
const { build, release, footerTxt } = require('../config.json');
|
||||
function Uptime(uptimetype) {
|
||||
let totalSeconds = (uptimetype / 1000);
|
||||
|
||||
|
@ -29,14 +30,14 @@ module.exports = {
|
|||
let botAvatar = client.user.displayAvatarURL()
|
||||
const embed = {
|
||||
"title": "<:AnitroxInfo:809651936831733791> Information about Anitrox",
|
||||
"description": "Everything you've ever wanted to know about Anitrox!",
|
||||
"description": "Everything you've ever wanted to know about your favorite bot, Anitrox!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "meow"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"thumbnail": {
|
||||
"url": ("https://cdn.discordapp.com/avatars/576805923964715018/20f9b2815850dbbebd6d858308c90330.webp")
|
||||
"url": client.user.displayAvatarURL()
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -45,19 +46,33 @@ module.exports = {
|
|||
},
|
||||
{
|
||||
"name": "Release Type",
|
||||
"value": release
|
||||
"value": release,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Release Version",
|
||||
"value": build
|
||||
"value": build,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Uptime",
|
||||
"value": Uptime(client.uptime)
|
||||
"value": Uptime(client.uptime),
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "<:memory:793536677737136178> Bot Memory Usage",
|
||||
"value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB"
|
||||
"value": (Math.round(process.memoryUsage().heapUsed / 1024 / 1024 * 100) / 100) + " MiB",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Bot Name",
|
||||
"value": client.user.tag,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Bot ID",
|
||||
"value": "``" + client.user.id + "``",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "<:hostinfo:793529505263517747> Host Information",
|
||||
|
|
|
@ -2,15 +2,17 @@
|
|||
module.exports = {
|
||||
|
||||
name: 'invite',
|
||||
description: 'Sends invite to add the bot to a server.',
|
||||
description: 'Add Anitrox to your beautiful server!',
|
||||
syntax: [],
|
||||
execute(client, message) {
|
||||
const {footerTxt} = require('../config.json');
|
||||
const embed = {
|
||||
"title": "Add Anitrox to your Server",
|
||||
"title": "Add Anitrox to your Server!",
|
||||
"description": "Weather you want stable, or that squeaky clean fresh PTB build, we gotchu.",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"thumbnail": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/814352905394061322/anitroxaddsrvr.png"
|
||||
|
@ -18,19 +20,15 @@ module.exports = {
|
|||
"fields": [
|
||||
{
|
||||
"name": "Anitrox",
|
||||
"value": "This is the stable main build. \n https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8"
|
||||
"value": "Get the ripe off the vine Anitrox! \n [Add Anitrox to your server](https://discord.com/oauth2/authorize?client_id=576805923964715018&scope=bot&permissions=8)"
|
||||
},
|
||||
{
|
||||
"name": "Anitrox PTB (Public Test Build)",
|
||||
"value": "This is the PTB build, which has new features as they are pushed out. and is generally stable. \n https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303"
|
||||
},
|
||||
{
|
||||
"name": "Anitrox Dev (Unstable)",
|
||||
"value": "This isn't availiable for invite, though it is availiable on the support server."
|
||||
"value": "So you want the fresh and hot builds straight from the oven? We gotchu \n [Add Anitrox PTB to your server](https://discord.com/oauth2/authorize?client_id=489125054261755925&scope=bot&permissions=66186303)"
|
||||
},
|
||||
{
|
||||
"name": "Need help?",
|
||||
"value": "You can join the support server here: bit.ly/anitrox-help"
|
||||
"value": "Come join the Anitrox Support Server, for support and much more!\n [Anitrox Support Server](https://discord.gg/grebRGsBZ3)"
|
||||
}
|
||||
|
||||
]
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "kiss",
|
||||
description: "Kisses an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
|
||||
|
@ -22,8 +22,8 @@ module.exports = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
|
|
@ -6,8 +6,8 @@ module.exports = {
|
|||
name: "leskiss",
|
||||
description: "Lesbian kiss <:lesbian:803831629428686849>",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const taggedUser = message.mentions.users.first();
|
||||
const {footerTxt} = require('../config.json');
|
||||
// --------------------------------------
|
||||
const gifchoices = [
|
||||
"https://cdn.discordapp.com/attachments/793537380330111028/803833954750038066/gif5.gif",
|
||||
|
@ -34,8 +34,8 @@ module.exports = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "lick",
|
||||
description: "Licks an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
//---------------------------------------------------
|
||||
// --------------------------------------
|
||||
|
@ -41,11 +41,11 @@ if(!taggedUser) {
|
|||
|
||||
const embed = {
|
||||
"title": "<a:LeafeonLick:806396195089154058> Lick",
|
||||
"description": "<@" + taggedUser + "> You have been licked by <@" + messageAuthor + ">!",
|
||||
"description": "<@" + taggedUser + "> You have been licked by <@" + message.author + ">!",
|
||||
"color": 8311585,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/805314244123951114/cef569820773b0f5d54ee34cfa18e1f8.gif"
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "nom",
|
||||
description: "Noms an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
// --------------------------------------
|
||||
|
@ -43,8 +43,8 @@ module.exports = {
|
|||
"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"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -2,13 +2,14 @@ module.exports = {
|
|||
name: 'opensource',
|
||||
description: 'Attributions to open source components used by Anitrox',
|
||||
execute(client, message, args){
|
||||
const embed = {
|
||||
const {footerTxt} = require('../config.json');
|
||||
const embed = {
|
||||
"title": "Component Attribution",
|
||||
"description": "Some parts of Anitrox are using open source code, and their attributions are avaliable here!",
|
||||
"color": 52508,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"thumbnail": {
|
||||
"url": "https://cdn.discordapp.com/attachments/803658122299572255/838854256471703602/793885335498522685.png"
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "pat",
|
||||
description: "Pats an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
// --------------------------------------
|
||||
|
@ -21,8 +21,8 @@ module.exports = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -42,8 +42,8 @@ module.exports = {
|
|||
"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"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -1,17 +1,21 @@
|
|||
module.exports = {
|
||||
name: "ping",
|
||||
description: "Gets bot ping",
|
||||
execute(client, message, args) {
|
||||
const embed = {
|
||||
execute(client, message) {
|
||||
const {footerTxt, locations} = require('../config.json');
|
||||
|
||||
const index = Math.floor(Math.random() * (locations.length -1 ) + 1);
|
||||
PingLocation = locations[index]
|
||||
const embed = {
|
||||
"title": ":ping_pong: Ping",
|
||||
"color": 9442302,
|
||||
"fields": [
|
||||
{
|
||||
"name": "Ping is " + client.ws.ping + " ms",
|
||||
"value": "If this is more than 350ms there may be a problem!"
|
||||
}
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
"description": "**Pong!** We pinged **" + PingLocation + "** and got " + client.ws.ping + " ms.",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
}
|
||||
}
|
||||
|
||||
message.channel.send({ embed });
|
||||
}
|
||||
};
|
||||
|
|
|
@ -21,8 +21,8 @@ module.exports = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -42,8 +42,8 @@ module.exports = {
|
|||
"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"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "slap",
|
||||
description: "Slaps an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
//---------------------------------------------------
|
||||
|
||||
|
@ -12,8 +12,8 @@ const errorembed = {
|
|||
"title": "<:AnitroxError:809651936563429416> Error",
|
||||
"color": 13632027,
|
||||
"footer": {
|
||||
"icon_url": "https://images-ext-2.discordapp.net/external/-qaO3jaZLojhEnjrHiKABdXD7gLWqFvdUqHdskNGWhE/https/media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
|
@ -33,8 +33,8 @@ if(!taggedUser) {
|
|||
"description": "<@" + taggedUser + "> You have been slapped by <@" + messageAuthor + ">!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox © IDeletedSystem64 2018-2021"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": "https://media1.tenor.com/images/b6d8a83eb652a30b95e87cf96a21e007/tenor.gif?itemid=10426943"
|
||||
|
|
|
@ -3,7 +3,7 @@ module.exports = {
|
|||
name: "snuggle",
|
||||
description: "Snuggle an user!",
|
||||
execute(client, message, args) {
|
||||
const messageAuthor = message.author
|
||||
const {footerTxt} = require('../config.json');
|
||||
const taggedUser = message.mentions.users.first();
|
||||
|
||||
// --------------------------------------
|
||||
|
@ -22,8 +22,8 @@ module.exports = {
|
|||
"description": "<@" + taggedUser + ">" + " You have been snuggled by " + "<@" + messageAuthor + ">!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem64"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
"image": {
|
||||
"url": gif
|
||||
|
|
|
@ -1,31 +1,17 @@
|
|||
module.exports = {
|
||||
|
||||
name: "userinfo",
|
||||
description: "Gets info about an user, such as ID, Discord Join date and more.",
|
||||
name: "uinfo",
|
||||
description: "Gets info about an user, such as ID, Discord Join date and more",
|
||||
syntax: "<User>",
|
||||
execute(client, message, args) {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const user = message.mentions.users.first();
|
||||
var i=0;i<user.presence.activities.length;i
|
||||
const activity = user.presence.activities[i];
|
||||
|
||||
if(!activity) {
|
||||
const activity = "This user doesn't have a set status"
|
||||
// Checks if a user was mentioned. If not, returns error message.
|
||||
}
|
||||
|
||||
|
||||
|
||||
const {footerTxt} = require('../config.json');
|
||||
let user = message.mentions.users.first() || args[0]
|
||||
if (!user) user = message.author
|
||||
const embed = {
|
||||
"title": "Everything you've ever wanted to know about " + user.username + "!",
|
||||
"color": 9442302,
|
||||
"footer": {
|
||||
"icon_url": "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": "Made with ❤ in Illinois | Anitrox by IDeletedSystem644"
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt
|
||||
},
|
||||
|
||||
"thumbnail": {
|
||||
|
@ -33,22 +19,29 @@ module.exports = {
|
|||
},
|
||||
"fields": [
|
||||
|
||||
{
|
||||
"name": "Username",
|
||||
"value": user.username,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Discriminator",
|
||||
"value": user.discriminator,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "Full Username",
|
||||
"value": user.tag
|
||||
"value": user.tag,
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"name": "User Profile Picture",
|
||||
"value": user.displayAvatarURL()
|
||||
},
|
||||
{
|
||||
"name": "User Presence",
|
||||
"name": "User Status",
|
||||
value: user.presence.status
|
||||
},
|
||||
{
|
||||
"name": "Custom Status",
|
||||
value: activity.state
|
||||
},
|
||||
{
|
||||
"name": "User ID",
|
||||
"value": "``" + user.id + "``"
|
||||
|
@ -58,9 +51,8 @@ module.exports = {
|
|||
"value": user.createdAt,
|
||||
inline: true
|
||||
},
|
||||
|
||||
]
|
||||
};
|
||||
message.channel.send({ embed: embed });
|
||||
}
|
||||
}
|
||||
}
|
|
@ -1,7 +1,37 @@
|
|||
{
|
||||
"prefix": "n!",
|
||||
"token": "IM SO EXCITED ABOUT BURGER",
|
||||
"ownerID": "309427567004483586",
|
||||
"ownerID": "MY FAVORITE COLOR IS TWELVE",
|
||||
"release": "anitrox_dev",
|
||||
"build": "Public Test Build 4"
|
||||
}
|
||||
"build": "Stable",
|
||||
"footerTxt": "Anitrox, made with <3 by IDeletedSystem64 | 2018-2022",
|
||||
|
||||
"statuses": [
|
||||
"with np!help",
|
||||
"with Sophie!",
|
||||
"Trans Rights!",
|
||||
"in your computer",
|
||||
"with my internet router",
|
||||
"ssh: system64@borkeonv2",
|
||||
"YouTube",
|
||||
"with source code",
|
||||
"Visual Studio Code",
|
||||
"Minecraft",
|
||||
"with the network connections.",
|
||||
"VLC Media Player",
|
||||
"Chromium"
|
||||
],
|
||||
"locations": [
|
||||
"Microsoft",
|
||||
"LinusTechTips",
|
||||
"Linus Torvalds",
|
||||
"borkeonv2",
|
||||
"Google",
|
||||
"192.168.1.1",
|
||||
"127.0.0.1",
|
||||
"Sophie's computer",
|
||||
"Mars",
|
||||
"Elon Musk",
|
||||
"TMC Software"
|
||||
]
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"denied": "<:AnitroxDenied:809651936642203668>",
|
||||
"error": "<:AnitroxError:809651936563429416> ",
|
||||
"info": "<:AnitroxInfo:809651936831733791>",
|
||||
"success": "<:AnitroxSuccess:809651936819019796>",
|
||||
"warning": "<:AnitroxWarning:809651934717804555>"
|
||||
}
|
68
start.js
68
start.js
|
@ -1,24 +1,10 @@
|
|||
|
||||
console.log("Let's get started")
|
||||
const fs = require('fs');
|
||||
const Discord = require('discord.js');
|
||||
const { MessageActionRow, MessageButton } = require('discord.js')
|
||||
const { build, release, prefix, token, footer } = require('./config.json');
|
||||
const { statuses, build, release, prefix, token, footerTxt } = require('./config.json');
|
||||
const os = require("os");
|
||||
|
||||
const activities_list = [
|
||||
"with np!help",
|
||||
"with Sophie!",
|
||||
"Trans Rights!",
|
||||
"in your computer",
|
||||
"with my internet router",
|
||||
"ssh: system64@borkeonv2",
|
||||
"YouTube",
|
||||
"with source code",
|
||||
"Visual Studio Code",
|
||||
"Running Anitrox" + build
|
||||
];
|
||||
console.log('Starting! This should only take a moment.')
|
||||
console.log('Starting!')
|
||||
const client = new Discord.Client();
|
||||
client.commands = new Discord.Collection();
|
||||
|
||||
|
@ -31,7 +17,7 @@ for (const file of commandFiles) {
|
|||
|
||||
client.on("error", (e) => console.log("[ERROR]" + error(e)));
|
||||
client.on("warn", (e) => ("[WARN]" + warn(e)));
|
||||
// Log errors and warnings ton console.
|
||||
// Log errors to console.
|
||||
client.once('ready', () => {
|
||||
console.clear()
|
||||
console.log(' ___ _ __ ');
|
||||
|
@ -40,47 +26,41 @@ client.once('ready', () => {
|
|||
console.log(' / ___ |/ / / / / /_/ / / /_/ /> < ');
|
||||
console.log('/_/ |_/_/ /_/_/\__/_/ \____/_/|_| ')
|
||||
console.log(release + ", " + build)
|
||||
console.log("All Systems Go. | Anitrox by IDeletedSystem64 | meow meow :3");
|
||||
console.log("All Systems Go. | Anitrox by IDeletedSystem64 | ALL MY CODE KEEPS BLOWING UP!");
|
||||
});
|
||||
// does a cool logo thingy on start up
|
||||
setInterval(() => {
|
||||
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
||||
client.user.setActivity(activities_list[index]);
|
||||
}, 20000);
|
||||
// runs some math to randomly pick a status from activites_list, this may need tuning when statuses are added/removed to make it more random (as it may just land on the current status instead)
|
||||
client.on('message', message => {
|
||||
if (!message.content.startsWith(prefix) || message.author.bot) return;
|
||||
|
||||
setInterval(() => {
|
||||
const index = Math.floor(Math.random() * (statuses.length - 1) + 1);
|
||||
client.user.setActivity(statuses[index]);
|
||||
}, 20000);
|
||||
// Picks a status from the config file
|
||||
|
||||
// Begin Command Handler
|
||||
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, Discord, footer);
|
||||
client.commands.get(command).execute(client, message, args, footerTxt, Discord);
|
||||
} catch (error) {
|
||||
console.stack
|
||||
const usr = message.author;
|
||||
const embed = {
|
||||
"title": "<:AnitroxError:809651936563429416> **Well that happened...**",
|
||||
"title": "<:AnitroxError:809651936563429416> **Something went wrong!**",
|
||||
"description": error.stack,
|
||||
"color": 13632027,
|
||||
"footer": {
|
||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||
"text": footer
|
||||
},
|
||||
"fields": [
|
||||
{
|
||||
"name": "**What Happened?**",
|
||||
"value": "The command you tried to run failed to execute due to an error."
|
||||
},
|
||||
{
|
||||
"name": "Error Info",
|
||||
"value": error.stack
|
||||
}
|
||||
]
|
||||
};
|
||||
"icon_url": message.author.displayAvatarURL(),
|
||||
"text": footerTxt + " | Something went wrong! :("
|
||||
}
|
||||
};
|
||||
message.channel.send({ embed });
|
||||
// tries to run the executed command, if fails it will send a error msg with the error stack
|
||||
// End Command Handler
|
||||
}
|
||||
});
|
||||
|
||||
client.login(token);
|
||||
client.login(token);
|
Reference in New Issue