mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 14:23:41 +00:00
Compare commits
13 Commits
Author | SHA1 | Date | |
---|---|---|---|
dc5a9d4e71 | |||
e479e5a82a | |||
6afe6c30f9 | |||
17161b72b9 | |||
3cb54c9470 | |||
751f9989eb | |||
6c860b6b23 | |||
0bfb34c1dd | |||
9a84a3c938 | |||
510f2c5b50 | |||
e571194eac | |||
ca02f95500 | |||
28e7476f70 |
19
.github/workflows/docker-build.yml
vendored
Normal file
19
.github/workflows/docker-build.yml
vendored
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
name: Docker Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
buildx:
|
||||||
|
name: Docker Build
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
- name: Setup Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v1.5.1
|
||||||
|
id: buildx
|
||||||
|
with:
|
||||||
|
install: true
|
||||||
|
- name: Build
|
||||||
|
run: docker build . # will run buildx
|
@ -14,4 +14,6 @@ RUN npm install -g npm
|
|||||||
|
|
||||||
RUN npm install
|
RUN npm install
|
||||||
|
|
||||||
|
RUN npm run build
|
||||||
|
|
||||||
CMD [ "npm", "start" ]
|
CMD [ "npm", "start" ]
|
912
package-lock.json
generated
912
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
31
package.json
31
package.json
@ -1,11 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "eximiabots-radiox",
|
"name": "eximiabots-radiox",
|
||||||
"version": "0.2.0",
|
"version": "0.2.3",
|
||||||
"description": "Internet Radio to your Discord guild",
|
"description": "Internet Radio to your Discord guild",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "rimraf ./build && tsc",
|
"build": "rimraf ./build && tsc",
|
||||||
"start": "npm run build && node build/index.js"
|
"start": "node build/index.js",
|
||||||
|
"start:dev": "npm run build && node build/index.js"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
@ -17,32 +18,32 @@
|
|||||||
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
|
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/opus": "^0.5.3",
|
"@discordjs/opus": "^0.6.0",
|
||||||
"@discordjs/voice": "^0.5.6",
|
"@discordjs/voice": "^0.6.0",
|
||||||
"@types/node": "^16.4.13",
|
|
||||||
"@types/ws": "^7.4.7",
|
|
||||||
"discord-api-types": "^0.22.0",
|
"discord-api-types": "^0.22.0",
|
||||||
"discord.js": "^13.0.1",
|
"discord.js": "^13.1.0",
|
||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
"libsodium-wrappers": "^0.7.9",
|
"libsodium-wrappers": "^0.7.9",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7"
|
||||||
"tsc-watch": "^4.4.0",
|
|
||||||
"typescript": "^4.3.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@typescript-eslint/eslint-plugin": "^4.29.0",
|
"@types/node": "^16.6.1",
|
||||||
"@typescript-eslint/parser": "^4.29.0",
|
"@types/ws": "^7.4.7",
|
||||||
|
"@typescript-eslint/eslint-plugin": "^4.29.2",
|
||||||
|
"@typescript-eslint/parser": "^4.29.2",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
"eslint-config-prettier": "^8.3.0",
|
"eslint-config-prettier": "^8.3.0",
|
||||||
"eslint-plugin-prettier": "^3.4.0",
|
"eslint-plugin-prettier": "^3.4.1",
|
||||||
"nodemon": "^2.0.12",
|
"nodemon": "^2.0.12",
|
||||||
"prettier": "^2.3.2",
|
"prettier": "^2.3.2",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"ts-node": "^10.1.0"
|
"ts-node": "^10.2.1",
|
||||||
|
"tsc-watch": "^4.5.0",
|
||||||
|
"typescript": "^4.3.5"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.6.0",
|
"node": ">=16.6.0",
|
||||||
"npm": ">=7.0.0"
|
"npm": ">=7.0.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -27,8 +27,9 @@ module.exports = {
|
|||||||
msg.channel.send({ embeds: [embed] });
|
msg.channel.send({ embeds: [embed] });
|
||||||
} else {
|
} else {
|
||||||
const categories = [];
|
const categories = [];
|
||||||
|
let commandsToArray = Array.from(client.commands.values());
|
||||||
for (let i = 0; i < client.commands.size; i++) {
|
for (let i = 0; i < client.commands.size; i++) {
|
||||||
if (!categories.includes(client.commands.array()[i].category)) categories.push(client.commands.array()[i].category);
|
if (!categories.includes(commandsToArray[i].category)) categories.push(commandsToArray[i].category);
|
||||||
}
|
}
|
||||||
let commands = '';
|
let commands = '';
|
||||||
for (let i = 0; i < categories.length; i++) {
|
for (let i = 0; i < categories.length; i++) {
|
||||||
|
@ -16,7 +16,7 @@ module.exports = {
|
|||||||
|
|
||||||
if (newState.channel === null) {
|
if (newState.channel === null) {
|
||||||
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
client.funcs.statisticsUpdate(client, newState.guild, radio);
|
||||||
radio.connection?.destroy();
|
radio.connection = null;
|
||||||
radio.audioPlayer?.stop();
|
radio.audioPlayer?.stop();
|
||||||
return client.radio.delete(newState.guild.id);
|
return client.radio.delete(newState.guild.id);
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@ module.exports = {
|
|||||||
bugTitle: "Found a bug with %client.user.username%?",
|
bugTitle: "Found a bug with %client.user.username%?",
|
||||||
bugDescription: "Join the support server \n %client.config.supportGuild%",
|
bugDescription: "Join the support server \n %client.config.supportGuild%",
|
||||||
helpTitle: "%client.user.username% help:",
|
helpTitle: "%client.user.username% help:",
|
||||||
helpDescription: "%commands% \n %client.config.prefix%help <command> to see more information about a command.",
|
helpDescription: "%commands%",
|
||||||
helpCommandTitle: "%client.config.prefix%%command.name% %command.usage%",
|
helpCommandTitle: "%client.config.prefix%%command.name% %command.usage%",
|
||||||
helpCommandDescription: "%command.description% \n Command Alias: %command.alias%",
|
helpCommandDescription: "%command.description% \n Command Alias: %command.alias%",
|
||||||
inviteTitle: "Invite %client.user.username% to your Discord server!",
|
inviteTitle: "Invite %client.user.username% to your Discord server!",
|
||||||
|
Reference in New Issue
Block a user