-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 5fb001b
Showing
9,462 changed files
with
1,063,891 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Auto detect text files and perform LF normalization | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,170 @@ | ||
const { REST } = require('@discordjs/rest'); | ||
const { Routes } = require('discord-api-types/v9'); | ||
const { SlashCommandBuilder } = require('@discordjs/builders'); | ||
|
||
const servers = new SlashCommandBuilder() | ||
servers.setName('servers') | ||
servers.setDescription('Modifies the saved servers for this guild') | ||
servers.addSubcommand(subcommand => | ||
subcommand | ||
.setName('add') | ||
.setDescription('Adds a saved server') | ||
.addStringOption(option => option.setName('address').setDescription('The IP address of the server to add').setRequired(true)) | ||
.addStringOption(option => option.setName('alias').setDescription('Set an alias for this server').setRequired(false)) | ||
.addIntegerOption(option => option.setName('port').setDescription('The port number of the server to add').setRequired(false)) | ||
.addBooleanOption(option => option.setName('default').setDescription('Sets this server as the default').setRequired(false))) | ||
servers.addSubcommand(subcommand => | ||
subcommand | ||
.setName('remove') | ||
.setDescription('Removes a saved server') | ||
.addStringOption(option => option.setName('alias').setDescription('The alias of the server to remove').setRequired(true))) | ||
servers.addSubcommand(subcommand => | ||
subcommand | ||
.setName('list') | ||
.setDescription('Lists the saved servers for this guild')) | ||
|
||
const embeds = new SlashCommandBuilder() | ||
embeds.setName('embeds') | ||
embeds.setDescription('Modifies the saved embeds for this guild') | ||
embeds.addSubcommand(subcommand => | ||
subcommand | ||
.setName('add') | ||
.setDescription('Adds an embed template') | ||
.addStringOption(option => option.setName('alias').setDescription('Sets an alias for this template').setRequired(false)) | ||
.addStringOption(option => option.setName('online-header').setDescription('Sets the online embed header text').setRequired(false)) | ||
.addStringOption(option => option.setName('online-footer').setDescription('Sets the online embed footer text').setRequired(false)) | ||
.addStringOption(option => option.setName('online-body').setDescription('Sets the online embed body text').setRequired(false)) | ||
.addStringOption(option => option.setName('online-color').setDescription('Sets the online embed color').setRequired(false).addChoice('Green', '33CC66').addChoice('Red', 'E74C3C').addChoice('Blue', '3498DB').addChoice('Yellow', 'FFFF54').addChoice('Pink', 'E874D9').addChoice('Purple', '3F208A').addChoice('Orange', 'C75300')) | ||
.addStringOption(option => option.setName('online-color-hex').setDescription('Allows a custom online embed color').setRequired(false)) | ||
.addBooleanOption(option => option.setName('online-display-timestamp').setDescription('Enables/Disables the online embed timestamp').setRequired(false)) | ||
.addBooleanOption(option => option.setName('display-thumbnail').setDescription('Enables/Disables the online embed thmbnail').setRequired(false)) | ||
.addBooleanOption(option => option.setName('online-display-list').setDescription('Enables/Disables the online embed player list').setRequired(false)) | ||
.addBooleanOption(option => option.setName('online-display-header').setDescription('Enables/Disables the offline embed header').setRequired(false)) | ||
.addBooleanOption(option => option.setName('online-display-footer').setDescription('Enables/Disables the offline embed footer').setRequired(false)) | ||
.addStringOption(option => option.setName('offline-header').setDescription('Sets the offline embed header color').setRequired(false)) | ||
.addStringOption(option => option.setName('offline-footer').setDescription('Sets the offline embed footer text').setRequired(false)) | ||
.addStringOption(option => option.setName('offline-body').setDescription('Sets this server as the default').setRequired(false)) | ||
.addStringOption(option => option.setName('offline-color').setDescription('Sets this server as the default').setRequired(false).addChoice('Green', '33CC66').addChoice('Red', 'E74C3C').addChoice('Blue', '3498DB').addChoice('Yellow', 'FFFF54').addChoice('Pink', 'E874D9').addChoice('Purple', '3F208A').addChoice('Orange', 'C75300')) | ||
.addStringOption(option => option.setName('offline-color-hex').setDescription('Sets this server as the default').setRequired(false)) | ||
.addBooleanOption(option => option.setName('offline-display-timestamp').setDescription('Sets this server as the default').setRequired(false)) | ||
.addBooleanOption(option => option.setName('offline-display-header').setDescription('Enables/Disables the offline embed header').setRequired(false)) | ||
.addBooleanOption(option => option.setName('offline-display-footer').setDescription('Enables/Disables the offline embed footer').setRequired(false))) | ||
embeds.addSubcommand(subcommand => | ||
subcommand | ||
.setName('remove') | ||
.setDescription('Removes an embed template') | ||
.addStringOption(option => option.setName('alias').setDescription('The alias of the template to remove').setRequired(true))) | ||
embeds.addSubcommand(subcommand => | ||
subcommand | ||
.setName('list') | ||
.setDescription('Lists the embed templates for this guild')) | ||
embeds.addSubcommand(subcommand => | ||
subcommand | ||
.setName('preview') | ||
.setDescription('Previews a saved embed template') | ||
.addStringOption(option => option.setName('alias').setDescription('The alias of the template to preview').setRequired(true))) | ||
|
||
|
||
const status = new SlashCommandBuilder() | ||
status.setName('status') | ||
status.setDescription('Checks the status of a Minecraft server') | ||
status.addStringOption(option => | ||
option.setName('address') | ||
.setDescription('The IP address of the server to check') | ||
.setRequired(false)); | ||
status.addStringOption(option => | ||
option.setName('server') | ||
.setDescription('Saved server to use') | ||
.setRequired(false)); | ||
status.addIntegerOption(option => | ||
option.setName('port') | ||
.setDescription('The port number of the server') | ||
.setRequired(false)); | ||
|
||
const automsg = new SlashCommandBuilder() | ||
automsg.setName('automsg') | ||
automsg.setDescription('Creates a Message Edit Live Status panel') | ||
automsg.addStringOption(option => | ||
option.setName('address') | ||
.setDescription('The IP address of the server') | ||
.setRequired(false)); | ||
automsg.addIntegerOption(option => | ||
option.setName('port') | ||
.setDescription('The port number of the server') | ||
.setRequired(false)); | ||
automsg.addStringOption(option => | ||
option.setName('server') | ||
.setDescription("Saved server to use") | ||
.setRequired(false)); | ||
automsg.addStringOption(option => | ||
option.setName('embeds') | ||
.setDescription('Saved embed template to use') | ||
.setRequired(false)); | ||
const autopnl = new SlashCommandBuilder() | ||
autopnl.setName('autocnl') | ||
autopnl.setDescription('Confugures a voice channel for Channel Edit Live Status') | ||
autopnl.addChannelOption(option => | ||
option.setName('channel') | ||
.setDescription('The voice channel to use') | ||
.setRequired(true) | ||
.addChannelType(2)) | ||
autopnl.addStringOption(option => | ||
option.setName('online_text') | ||
.setDescription('Channel display name when server is online') | ||
.setRequired(true)) | ||
autopnl.addStringOption(option => | ||
option.setName('offline_text') | ||
.setDescription('Channel display name when server is offline') | ||
.setRequired(true)) | ||
autopnl.addStringOption(option => | ||
option.setName('address') | ||
.setDescription('The IP address of the server') | ||
.setRequired(false)); | ||
autopnl.addIntegerOption(option => | ||
option.setName('port') | ||
.setDescription('The port number of the server') | ||
.setRequired(false)); | ||
autopnl.addStringOption(option => | ||
option.setName('server') | ||
.setDescription("Saved server to use") | ||
.setRequired(false)); | ||
const commands = [ | ||
automsg, | ||
status, | ||
embeds, | ||
autopnl, | ||
servers, | ||
{ | ||
name: 'test', | ||
description: 'Debug command' | ||
}, | ||
{ | ||
name: 'botstats', | ||
description: 'Provides statistics about the bot' | ||
}, | ||
{ | ||
name: 'invite', | ||
description: 'Provides links to add the bot or join the support server' | ||
} | ||
]; | ||
|
||
const rest = new REST({ version: '9' }).setToken('NjgxMzU1MDczMTc5MDkwOTY1.Xngc8g.9ATtVcd-iTw0oHUFTJ-TsUMuR2Q'); | ||
|
||
(async () => { | ||
try { | ||
console.log('Started refreshing application (/) commands.'); | ||
|
||
|
||
await rest.put( | ||
Routes.applicationGuildCommands('681355073179090965', '690081112164139040'), | ||
{ body: commands }, | ||
); | ||
|
||
await rest.put(Routes.applicationCommands('681355073179090965'),{ body: commands },); | ||
|
||
|
||
console.log('Successfully reloaded application (/) commands.'); | ||
} catch (error) { | ||
console.error(error); | ||
} | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
{ | ||
"botver": "3.0 (Beta Build 100)", | ||
"release": 2, | ||
"debugMode": 1, | ||
"cmdCD": 7000, | ||
"sugCD": 900000, | ||
"enableMessageEdit": false, | ||
"enableChannelEdit": false, | ||
"configs": | ||
[ | ||
{ | ||
"dbConfig": {"server": "localhost\\SQLEXPRESS", | ||
"user": "MCdba", | ||
"password": "Comment678", | ||
"database": "MCSS", | ||
"options": {"enableArithAbort": false}}, | ||
"token": "NzkwMDc1Nzk2MDQyOTQwNDQ4.Gfni2-.lpUr73JRyr-JFs20kR0Yg513-SW10H2z4hg04M", | ||
"supportServer": "799882620913319957", | ||
"suggestionChannel": "799890506757963857", | ||
"expressPort": 4889, | ||
"liveQueuePause": 1000 | ||
}, | ||
{ | ||
"dbConfig": {"server": "localhost\\SQLEXPRESS", | ||
"user": "MCbeta", | ||
"password": "Comment678", | ||
"database": "MCSS_BETA", | ||
"options": {"enableArithAbort": false}}, | ||
"token": "NjUyNzI2MTA3NTM1MzEwODU5.G_UEoG.DiSiEC2BHAGefBVZUdxx3-KWlFg9DSVE48YJKQ", | ||
"supportServer": "799882620913319957", | ||
"suggestionChannel": "844819088499933204", | ||
"expressPort": 4890, | ||
"liveQueuePause": 1000 | ||
}, | ||
{ | ||
"dbConfig": {"server": "localhost\\SQLEXPRESS", | ||
"user": "MCbeta", | ||
"password": "Comment678", | ||
"database": "MCSS_BETA", | ||
"options": {"enableArithAbort": false, "trustServerCertificate": true}}, | ||
"token": "NjgxMzU1MDczMTc5MDkwOTY1.Xngc8g.9ATtVcd-iTw0oHUFTJ-TsUMuR2Q", | ||
"supportServer": "690081112164139040", | ||
"suggestionChannel": "795926682326401044", | ||
"expressPort": 4891, | ||
"liveQueuePause": 1000 | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[ | ||
{ | ||
"domain": "aternos.me", | ||
"motd": "This server is offline." | ||
}, | ||
{ | ||
"domain": "aternos.me", | ||
"motd": "Server not found." | ||
}, | ||
{ | ||
"domain": "minefort.com", | ||
"motd": "Start your server at www.minefort.com" | ||
} | ||
] |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.