mirror of
https://github.com/warengroup/eximiabots-radiox.git
synced 2025-07-01 15:43:38 +00:00
TypeScript Initial
This commit is contained in:
@ -9,7 +9,7 @@ module.exports = class {
|
||||
constructor() {
|
||||
this.map = new Map();
|
||||
this.mode = null;
|
||||
this.logger = require("../funcs/logger.js");
|
||||
this.logger = require("../funcs/logger");
|
||||
}
|
||||
|
||||
init(client){
|
@ -8,7 +8,7 @@ module.exports = {
|
||||
async execute(client) {
|
||||
|
||||
const commands = [];
|
||||
const commandFiles = fs.readdirSync(path.join("./src/client/commands")).filter(f => f.endsWith(".js"));
|
||||
const commandFiles = fs.readdirSync(path.join("./src/client/commands")).filter(f => f.endsWith(".ts"));
|
||||
|
||||
for (const file of commandFiles) {
|
||||
const command = require(`./commands/${file}`);
|
@ -1,5 +1,5 @@
|
||||
import { ActionRowBuilder, EmbedBuilder, StringSelectMenuBuilder } from "discord.js";
|
||||
import Streamer from "../classes/Streamer.js";
|
||||
import Streamer from "../classes/Streamer";
|
||||
const _importDynamic = new Function('modulePath', 'return import(modulePath)');
|
||||
const fetch = (...args) => _importDynamic('node-fetch').then(({default: fetch}) => fetch(...args));
|
||||
|
@ -1,8 +1,8 @@
|
||||
import Datastore from "../classes/Datastore.js";
|
||||
import Radio from "../classes/Radio.js";
|
||||
import Stations from "../classes/Stations.js";
|
||||
import Streamer from "../classes/Streamer.js";
|
||||
import Statistics from "../classes/Statistics.js";
|
||||
import Datastore from "../classes/Datastore";
|
||||
import Radio from "../classes/Radio";
|
||||
import Stations from "../classes/Stations";
|
||||
import Streamer from "../classes/Streamer";
|
||||
import Statistics from "../classes/Statistics";
|
||||
|
||||
module.exports = {
|
||||
name: 'ready',
|
@ -35,7 +35,5 @@ module.exports = {
|
||||
statusField4: ":hourglass: Latency",
|
||||
statusField5: ":globe_with_meridians: Hosted by",
|
||||
errorStationURL: "Station can't be URL",
|
||||
messageCommandsDeprecatedTitle: "%client.user.username%",
|
||||
messageCommandsDeprecatedDescription: "We recommend you to reauthorize our bot by clicking the invite link down below, because Discord is planning to remove message content from verified bots [Read More](https://support-dev.discord.com/hc/en-us/articles/4404772028055)" + "\n\n" + "**Invite Bot**" + "\n" + "https://wgi.fi/radiox_invite" + "\n\n" + "This bot now supports slash commands, you should start using them instead. Type / into the message box and select the bot you wish to use. Remember to be careful as there are a few bugs here and there on Discord." + "\n\n" + "We will remove this deprecation message in March of 2022 when RadioX 1.0.0 is released.",
|
||||
maintenance: "Shhhh... We are now sleeping and dreaming about new features to implement. Will be back soon."
|
||||
};
|
Reference in New Issue
Block a user