Skip to content

When start the script #20

@JohnDeereLiebhaber

Description

@JohnDeereLiebhaber

Here is my error message:
node --experimental-loader ts-node/esm ./index.ts
(node:15452) ExperimentalWarning: --experimental-loader is an experimental feature. This feature could change at any time
(Use node --trace-warnings ... to show where the warning was created)
C:\Users\zrina\Documents\allebots\partybrobot\denon\node_modules\ts-node\dist-raw\node-internal-modules-esm-get_format.js:93
throw new ERR_UNKNOWN_FILE_EXTENSION(ext, fileURLToPath(url));
^
CustomError: ERR_UNKNOWN_FILE_EXTENSION .ts C:\Users\zrina\Documents\allebots\partybrobot\denon\node_modules\stagelinq\index.ts
and below is the code for it

`import { Client, ClientOptions, GatewayIntentBits} from "discord.js";
import { StageLinq } from "stagelinq";

const token = "My Token";
const options = { downloadDbSources: true };
const stageLinq = new StageLinq({downloadDbSources: true});

console.log("Bot is starting...");

const client = new Client({
intents: [GatewayIntentBits.Guilds, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildMessages]
});
client.login(token);

client.on("ready", () => {
console.log("Bot ist Online !!!");
});

client.on("messageCreate", message => {
if (message.author.bot) return;

if(message.content.startsWith("!hallo")) {
    message.channel.send("hallo");
};

});`

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions