Im just going to put the code of each command here
Coinflip:
exports.run = async (bot, message, args) => {
let random = (Math.floor(Math.random() * Math.floor(2)));
if(random === 0) {
message.channel.send('Heads!');
}
else {
message.channel.send('Tails!');
}
},
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'coinflip',
description: 'Flip a Coin',
usage: 'coinflip'
};
Wallpaper:
const Discord = require('discord.js');
const superagent = require('superagent');
const customisation = require('../customisation.json');
exports.run = async (client, message, args, tools) => {
const { body } = await superagent
.get("https://nekos.life/api/v2/img/wallpaper");
const embed = new Discord.MessageEmbed()
.setColor("#ff9900")
.setImage(body.url)
.setFooter(`© Cryptonix X Mod Bot by ${customisation.ownername}`);
message.channel.send({embed})
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'wallpaper',
description: 'Anime wallpapers OwO',
usage: 'wallpaper'
};
Timer:
const Discord = module.require('discord.js');
const ms = require('ms');
module.exports.run = async (bot, message, args) => {
let Timer = args[0];
if(isNaN(Timer)) return message.reply("heh, text time huh? How about no?")
if (ms(Timer) > 2147483647) return message.reply("You dweeb how do you expect me to handle such a big number nerd!")
if(ms(Timer) < 1) return message.reply("What's the point of that?")
if(!args[0]){
return message.channel.send(":x: " + "| Please Enter a time period followed by "s or m or h"");
}
if(args[0] <= 0){
return message.channel.send(":x: " + "| Please Enter a time period followed by "s or m or h"");
}
message.channel.send(":white_check_mark: " + "| Timer Started for: " + ${ms(ms(Timer), {long: true})}
)
setTimeout(function(){
message.channel.send(message.author.toString() + The Timer Has FINISHED!, it lasted: ${ms(ms(Timer), {long: true})}
)
}, ms(Timer));
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'timer',
description: 'Create a timer.',
usage: 'timer'
};
Slap:
const Discord = require('discord.js');
const superagent = require('superagent');
const customisation = require('../customisation.json');
exports.run = async (client, message, args, tools) => {
if (!message.mentions.users.first()) return message.reply("You need to mention someone to slap them");
if(message.mentions.users.first().id === "242263403001937920") return message.reply('You can't hurt him you pleblord.');
if (message.mentions.users.first().id == client.user.id && message.author.id === "242263403001937920"){
const { body } = await superagent
.get("https://nekos.life/api/v2/img/slap");
const embed = new Discord.MessageEmbed()
.setColor("#ff9900")
.setTitle(`No u! *slaps*${message.mentions.users.first().username}`)
.setImage(body.url)
.setFooter(`© Cryptonix X Mod Bot by ${customisation.ownername}`);
return message.channel.send({embed})
}else if (message.mentions.users.first().id == client.user.id && message.author.id !== "242263403001937920"){
return message.channel.send("NUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU **owwie**")
}
const { body } = await superagent
.get("https://nekos.life/api/v2/img/slap");
const embed = new Discord.MessageEmbed()
.setColor("#ff9900")
.setTitle(`OwO, ${message.mentions.users.first().username} You got slapped by ${message.author.username}`)
.setImage(body.url)
.setFooter(`© Cryptonix X Mod Bot by ${customisation.ownername}`);
message.channel.send({embed})
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'slap',
description: 'Slaps someone OwO',
usage: 'slap'
};
Neko:
const Discord = require('discord.js');
const superagent = require('superagent');
const customisation = require('../customisation.json');
exports.run = async (client, message, args, tools) => {
const { body } = await superagent
.get("https://nekos.life/api/neko");
link = body.neko;
const embed = new Discord.MessageEmbed()
.setColor("#ff9900")
.setTitle("Here's Your Neko OwO")
.setImage(body.neko)
.setFooter(`© Cryptonix X Mod Bot by ${customisation.ownername}`);
message.channel.send({embed})
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'neko',
description: 'Sends a random Neko OwO',
usage: 'neko'
};
Say:
exports.run = (client, message) => {
let args = message.content.split(" ").slice(1);
message.delete();
if (message.content.includes("@everyone") || message.content.includes("@here")) return message.channel.send("You ain't making me Ping anyone BOI!");
message.channel.send(args.join(" ")).cleanContent;
};
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: "say",
description: "Makes the bot repeat your message.",
usage: "say [message]"
};
Userinfo:
const moment = require('moment');
const Discord = require('discord.js');
const customisation = require('../customisation.json');
function checkDays(date) {
let now = new Date();
let diff = now.getTime() - date.getTime();
let days = Math.floor(diff / 86400000);
return days + (days == 1 ? " day" : " days") + " ago";
};
exports.run = async (client, message, args) => {
let user = message.mentions.users.first();
let muser = message.guild.member(message.mentions.users.first());
if(!message.mentions.users.first() && args.lenth > 0){
user = message.guild.member(args[0]).user
muser = message.guild.member(args[0]);
}
if (!muser) muser = message.member;
if(!user) user = message.author;
let status = ""
if(status === null) status = "No Game"
if(muser.presence.activities[0].type == 'CUSTOM_STATUS'){
let cstatus = muser.presence.activities[0].state
if(muser.presence.activities[0].emoji) {
if(muser.presence.activities[0].emoji.animated == true){
cstatus = <a:${muser.presence.activities[0].emoji.name}:${muser.presence.activities[0].emoji.id}> ${cstatus}
}
if(muser.presence.activities[0].emoji.animated !== true){
cstatus = <:${muser.presence.activities[0].emoji.name}:${muser.presence.activities[0].emoji.id}>${cstatus}
}
}
status = Custom Status:\n${cstatus}\nApp:\n${muser.presence.activities[1].name}
}else{
status = ${muser.presence.activities[0].type.toLowerCase()}: ${muser.presence.activities[0].name}
}
const embed = new Discord.MessageEmbed();
embed.addField("Username", ${user.username}#${user.discriminator}
, true)
.addField("ID", ${user.id}
, true)
.setColor(3447003)
.setThumbnail(${user.avatarURL()}
)
.setTimestamp()
.setURL(${user.avatarURL()}
)
.addField('Currently', ${muser.presence.status.toUpperCase()}
, true)
.addField('Game', status, true)
.addField('Joined Discord', ${moment(user.createdAt).toString().substr(0, 15)}\n(${moment(user.createdAt).fromNow()})
, true)
.addField('Joined Server', ${moment(muser.joinedAt).toString().substr(0, 15)}\n(${moment(muser.joinedAt).fromNow()})
, true)
.addField('Roles', ${muser.roles.cache.array()}
, true)
.addField('Is Bot', ${user.bot.toString().toUpperCase()}
, true)
.setFooter(© Cryptonix X Mod Bot by ${customisation.ownername}
);
message.channel.send({embed});
}
exports.conf = {
enabled: true,
guildOnly: false,
aliases: [],
permLevel: 0
};
exports.help = {
name: 'user',
description: 'Displays information about a user.',
usage: 'user <@user>'
};
Thats it for now, I dont want to get greedy with this, and I feel like I already have