Merge pull request #8 from IDeletedSystem64/dev
Update PTB with latest stable dev build
This commit is contained in:
commit
a254e2ed2f
|
@ -7,7 +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",
|
"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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -24,13 +24,13 @@ module.exports = {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const version = ("DEV1.0")
|
const version = ("dev build 421")
|
||||||
const release = ("anitrox_dev")
|
const release = ("anitrox_dev")
|
||||||
const os = require("os")
|
const os = require("os")
|
||||||
|
|
||||||
const embed = {
|
const embed = {
|
||||||
"title": "<:NyabotInfo:697145463350231040> Information about projectanitrox",
|
"title": "<:NyabotInfo:697145463350231040> Information about Anitrox",
|
||||||
"description": "Everything you've ever wanted to know about projectanitrox!",
|
"description": "Everything you've ever wanted to know about Anitrox!",
|
||||||
"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",
|
||||||
|
@ -93,11 +93,11 @@ const version = ("DEV1.0")
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "<:NyabotInfo:697145463350231040> **Want more system information?**",
|
"name": "<:NyabotInfo:697145463350231040> **Want more system information?**",
|
||||||
"value": "Run n!sysinfo for more detailed system information"
|
"value": "Run np!sysinfo for more detailed system information (Coming Soon™)"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "<:usersuccess:793885338250641469> **Special Thanks To**",
|
"name": "<:usersuccess:793885338250641469> **Special Thanks To**",
|
||||||
"value": "@OfficialTCGMatt for providing help with development"
|
"value": "@OfficialTCGMatt for providing help with development/n @chuu_shi Allowing me to host Anitrox on his server"
|
||||||
}
|
}
|
||||||
|
|
||||||
]
|
]
|
||||||
|
|
158
start.js
158
start.js
|
@ -1,80 +1,78 @@
|
||||||
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 = "Test Release 21";
|
||||||
const version = "Public Test Release 1";
|
const release = "anitrox_unstable"
|
||||||
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",
|
const footicon = "https://media.discordapp.net/attachments/549707869138714635/793524910172667964/Screenshot_26.png"
|
||||||
"btw I use Debian linux"
|
const footer = "Made with ❤ in Illinois | Anitrox © 2018-2021 IDeletedSystem64"
|
||||||
];
|
|
||||||
|
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||||
|
|
||||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
for (const file of commandFiles) {
|
||||||
|
const command = require(`./commands/${file}`);
|
||||||
for (const file of commandFiles) {
|
client.commands.set(command.name, command);
|
||||||
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("error", (e) => console.error(e));
|
client.on("debug", (e) => console.info(e))
|
||||||
client.on("warn", (e) => console.warn(e));
|
client.once('ready', () => {
|
||||||
client.on("debug", (e) => console.info(e))
|
console.log('All systems go.');
|
||||||
client.once('ready', () => {
|
});
|
||||||
console.log('All systems go.');
|
setInterval(() => {
|
||||||
});
|
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
||||||
setInterval(() => {
|
client.user.setActivity(activities_list[index]);
|
||||||
const index = Math.floor(Math.random() * (activities_list.length - 1) + 1);
|
}, 20000);
|
||||||
client.user.setActivity(activities_list[index]);
|
|
||||||
}, 20000);
|
client.on('message', message => {
|
||||||
|
if (!message.content.startsWith(prefix) || message.author.bot) return;
|
||||||
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();
|
||||||
const args = message.content.slice(prefix.length).split(/ +/);
|
|
||||||
const command = args.shift().toLowerCase();
|
if (!client.commands.has(command)) return;
|
||||||
|
|
||||||
if (!client.commands.has(command)) return;
|
try {
|
||||||
|
client.commands.get(command).execute(client, message, args);
|
||||||
try {
|
} catch (error) {
|
||||||
client.commands.get(command).execute(client, message, args);
|
const embed = {
|
||||||
} catch (error) {
|
"title": "<:NyabotError:697145462347661412> **An error occurred!**",
|
||||||
const embed = {
|
"color": 13632027,
|
||||||
"title": "<:NyabotError:697145462347661412> **An error occurred!**",
|
"footer": {
|
||||||
"color": 13632027,
|
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
||||||
"footer": {
|
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
||||||
"icon_url": "https://cdn.discordapp.com/attachments/549707869138714635/793524910172667964/Screenshot_26.png",
|
},
|
||||||
"text": "Anitrox © IDeletedSystem64 2018-2021 All Rights Reserved."
|
"fields": [
|
||||||
},
|
{
|
||||||
"fields": [
|
"name": "**What Happened?**",
|
||||||
{
|
"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