mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2024-12-23 01:53:17 +00:00
commit
ecd158f926
2
.github/workflows/docker-build.yml
vendored
2
.github/workflows/docker-build.yml
vendored
@ -12,7 +12,7 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: Setup Docker Buildx
|
- name: Setup Docker Buildx
|
||||||
uses: docker/setup-buildx-action@v2.2.1
|
uses: docker/setup-buildx-action@v2.5.0
|
||||||
id: buildx
|
id: buildx
|
||||||
with:
|
with:
|
||||||
install: true
|
install: true
|
||||||
|
2067
package-lock.json
generated
2067
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
36
package.json
36
package.json
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "eximiabots-radiox",
|
"name": "eximiabots-radiox",
|
||||||
"version": "0.4.1",
|
"version": "0.4.2",
|
||||||
"description": "Internet Radio to your Discord guild",
|
"description": "Internet Radio to your Discord guild",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@ -18,30 +18,30 @@
|
|||||||
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
|
"url": "https://github.com/warengroup/eximiabots-radiox/issues"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/builders": "^1.4.0",
|
"@discordjs/builders": "^1.6.3",
|
||||||
"@discordjs/opus": "^0.9.0",
|
"@discordjs/opus": "^0.9.0",
|
||||||
"@discordjs/rest": "^1.4.0",
|
"@discordjs/rest": "^1.7.1",
|
||||||
"@discordjs/voice": "^0.14.0",
|
"@discordjs/voice": "^0.16.0",
|
||||||
"discord-api-types": "^0.37.20",
|
"discord-api-types": "^0.37.42",
|
||||||
"discord.js": "^14.7.0",
|
"discord.js": "^14.11.0",
|
||||||
"dotenv": "^16.0.3",
|
"dotenv": "^16.0.3",
|
||||||
"libsodium-wrappers": "^0.7.10",
|
"libsodium-wrappers": "^0.7.11",
|
||||||
"node-fetch": "^3.3.0",
|
"node-fetch": "^3.3.1",
|
||||||
"path": "^0.12.7"
|
"path": "^0.12.7"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/node": "^18.11.9",
|
"@types/node": "^20.2.3",
|
||||||
"@types/ws": "^8.5.3",
|
"@types/ws": "^8.5.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^5.45.0",
|
"@typescript-eslint/eslint-plugin": "^5.59.6",
|
||||||
"@typescript-eslint/parser": "^5.45.0",
|
"@typescript-eslint/parser": "^5.59.7",
|
||||||
"eslint": "^8.28.0",
|
"eslint": "^8.41.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
"eslint-config-prettier": "^8.8.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
"prettier": "^2.8.0",
|
"prettier": "^2.8.8",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^5.0.1",
|
||||||
"ts-node": "^10.9.1",
|
"ts-node": "^10.9.1",
|
||||||
"tsc-watch": "^5.0.3",
|
"tsc-watch": "^6.0.4",
|
||||||
"typescript": "^4.9.3"
|
"typescript": "^5.0.4"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=16.9.1",
|
"node": ">=16.9.1",
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ActionRowBuilder, EmbedBuilder, SelectMenuBuilder } from "discord.js";
|
import { ActionRowBuilder, EmbedBuilder, StringSelectMenuBuilder } from "discord.js";
|
||||||
import Streamer from "../classes/Streamer.js";
|
import Streamer from "../classes/Streamer.js";
|
||||||
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
||||||
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||||
@ -65,7 +65,7 @@ module.exports = {
|
|||||||
|
|
||||||
const menu = new ActionRowBuilder()
|
const menu = new ActionRowBuilder()
|
||||||
.addComponents(
|
.addComponents(
|
||||||
new SelectMenuBuilder()
|
new StringSelectMenuBuilder()
|
||||||
.setCustomId('maintenance')
|
.setCustomId('maintenance')
|
||||||
.setPlaceholder('Select action')
|
.setPlaceholder('Select action')
|
||||||
.addOptions(options)
|
.addOptions(options)
|
||||||
|
@ -14,13 +14,13 @@ module.exports = {
|
|||||||
.setTitle(message.statusTitle)
|
.setTitle(message.statusTitle)
|
||||||
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
.setThumbnail("https://cdn.discordapp.com/emojis/" + client.messageEmojis["logo"].replace(/[^0-9]+/g, ''))
|
||||||
.setColor(client.config.embedColor)
|
.setColor(client.config.embedColor)
|
||||||
.addFields([
|
.addFields(
|
||||||
{ name: client.messages.statusField1, value: uptime },
|
{ name: client.messages.statusField1, value: uptime },
|
||||||
{ name: client.messages.statusField2, value: client.config.version },
|
{ name: client.messages.statusField2, value: client.config.version },
|
||||||
{ name: client.messages.statusField3, value: Date.now() - interaction.createdTimestamp + "ms" },
|
{ name: client.messages.statusField3, value: Date.now() - interaction.createdTimestamp + "ms" },
|
||||||
{ name: client.messages.statusField4, value: client.ws.ping },
|
{ name: client.messages.statusField4, value: client.ws.ping.toString() },
|
||||||
{ name: client.messages.statusField5, value: client.config.hostedBy }
|
{ name: client.messages.statusField5, value: client.config.hostedBy }
|
||||||
])
|
)
|
||||||
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
.setImage('https://waren.io/berriabot-temp-sa7a36a9xm6837br/images/empty-3.png')
|
||||||
.setFooter({
|
.setFooter({
|
||||||
text: client.messages.footerText,
|
text: client.messages.footerText,
|
||||||
|
@ -26,7 +26,7 @@ module.exports = {
|
|||||||
});
|
});
|
||||||
console.error(error);
|
console.error(error);
|
||||||
}
|
}
|
||||||
} else if (interaction.isSelectMenu() || interaction.isButton()){
|
} else if (interaction.isStringSelectMenu() || interaction.isButton()){
|
||||||
const commandName = interaction.customId;
|
const commandName = interaction.customId;
|
||||||
const command = client.commands.get(commandName);
|
const command = client.commands.get(commandName);
|
||||||
if (!command) return;
|
if (!command) return;
|
||||||
|
@ -41,12 +41,12 @@ module.exports = {
|
|||||||
show: true
|
show: true
|
||||||
});
|
});
|
||||||
|
|
||||||
setInterval(async () => {
|
/*setInterval(async () => {
|
||||||
await client.stations.fetch({
|
await client.stations.fetch({
|
||||||
url: client.config.stationslistUrl,
|
url: client.config.stationslistUrl,
|
||||||
show: false
|
show: false
|
||||||
});
|
});
|
||||||
}, 3600000);
|
}, 3600000);*/
|
||||||
|
|
||||||
client.streamer = new Streamer();
|
client.streamer = new Streamer();
|
||||||
client.streamer.init(client);
|
client.streamer.init(client);
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import { ActionRowBuilder, SelectMenuBuilder } from "discord.js";
|
import { ActionRowBuilder, StringSelectMenuBuilder } from "discord.js";
|
||||||
|
|
||||||
module.exports = function listStations(client, interaction){
|
module.exports = function listStations(client, interaction){
|
||||||
let stations = new Array();
|
let stations = new Array();
|
||||||
@ -16,7 +16,7 @@ module.exports = function listStations(client, interaction){
|
|||||||
|
|
||||||
const menu = new ActionRowBuilder()
|
const menu = new ActionRowBuilder()
|
||||||
.addComponents(
|
.addComponents(
|
||||||
new SelectMenuBuilder()
|
new StringSelectMenuBuilder()
|
||||||
.setCustomId('play')
|
.setCustomId('play')
|
||||||
.setPlaceholder('Nothing selected')
|
.setPlaceholder('Nothing selected')
|
||||||
.addOptions(options)
|
.addOptions(options)
|
||||||
|
Loading…
Reference in New Issue
Block a user