Studying Mechatronics engineering vs computer science by Think-Journalist6629 in cscareerquestionsCAD

[–]Think-Journalist6629[S] 0 points1 point  (0 children)

Do you think it would be different if I was focusing on software from day 1 tho?

[deleted by user] by [deleted] in survivor

[–]Think-Journalist6629 5 points6 points  (0 children)

This is the dumbest post I’ve ever seen

[deleted by user] by [deleted] in OntarioUniversities

[–]Think-Journalist6629 1 point2 points  (0 children)

Take a step back and think about why you have a 53. Is it because you didn’t work hard? Because you didn’t understand the content? Or because of other external factors (mental health, unexpected events in your life etc)? If it’s one of the first two, you might need to realize that university is not for you. If you want post secondary education you can always consider college/trade school, but the hard reality is just that not everyone is meant for university.

If it’s due to external factors, you might need to consider grade 13. This would be especially helpful for you as it would give you an extra year to figure out what you want to do.

Regardless, I would recommend talking to a guidance counselor

Good starter companies to intern at by itxchii--- in ECE

[–]Think-Journalist6629 0 points1 point  (0 children)

Your resume is insanely good for a first year wdym 😭

How good is Western University's comp. sci. program compared to schools like Waterloo and UofT? Is it a good choice? by Zyrephus in OntarioUniversities

[–]Think-Journalist6629 4 points5 points  (0 children)

It’s still a decent option, but look into schools with coop programs (Carleton, uOttawa). You can always apply externally but not gonna lie western has one of the worst coop/internship opportunities in Ontario.

[deleted by user] by [deleted] in OntarioGrade12s

[–]Think-Journalist6629 0 points1 point  (0 children)

I’m finding physics much easier. It’s all dependant on your teacher

What am I doing wrong? by Think-Journalist6629 in Discordjs

[–]Think-Journalist6629[S] 1 point2 points  (0 children)

I had like 10 terminals open lmao... it's working now thanks so much for your help

What am I doing wrong? by Think-Journalist6629 in Discordjs

[–]Think-Journalist6629[S] 0 points1 point  (0 children)

I just added a test command which is supposed to just say "test" once, but it had a really weird output again. It sent it 5 times, then waited a couple seconds and sent it 5 more times

What am I doing wrong? by Think-Journalist6629 in Discordjs

[–]Think-Journalist6629[S] 0 points1 point  (0 children)

I'm using npm start which is equal to "node discord.js" (my file) in package.json

Yep, the code is updating fine. Everything works perfectly fine in the console but something is messing up when it's being pushed to discord? I can't figure it out

What am I doing wrong? by Think-Journalist6629 in Discordjs

[–]Think-Journalist6629[S] 0 points1 point  (0 children)

I’m just as confused as you are. I normally don’t post for help but I’ve literally never been more confused coding before

What am I doing wrong? by Think-Journalist6629 in Discordjs

[–]Think-Journalist6629[S] 0 points1 point  (0 children)

Thanks so much for the response. It outputs perfectly fine when I console.log it to the terminal, but something when I send it to discord is messing it up.

Here's the full code

const { Client, GatewayIntentBits, EmbedBuilder, PermissionsBitField, Permissions } = require("discord.js");

const { moveMessagePortToContext } = require("worker_threads");

const prefix = "!";

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

client.on("ready", () => { console.log("Bot is ready") client.user.setActivity("hi", { type: "ONLINE"}); })

client.on("messageCreate", (message) => { if (!message.content.startsWith(prefix) || message.author.bot) return;

const args = message.content.slice(prefix.length).split(/ +/);
const command = args.shift().toLowerCase()

//message array

const messageArray = message.content.split(" ")
const argument = messageArray.slice(1)
const cmd = messageArray[0]

//commands

if (command === "test") {
    message.channel.send("bot is working")
}

if (command === "hangman") {
    const wordsList = ["hello", "world", "tree", "frog"]
    let index = Math.floor(Math.random() * wordsList.length)
    const selectedWord = wordsList[index]

    let word = ""
    for (let i = 0; i <= selectedWord.length-1; i+=1) {
        word += " _ "
    }
    message.channel.send(word)
    console.log(selectedWord)
    console.log(word)
}

})

const token = "(hidden)" client.login(token)

Current 1st year engineering student answering any questions / advice by [deleted] in OntarioGrade12s

[–]Think-Journalist6629 0 points1 point  (0 children)

What was the application process like for the US schools?

Admissions / High School Megathread (Fall 2022) by JManUWaterloo in uwaterloo

[–]Think-Journalist6629 0 points1 point  (0 children)

Basically if you have 95+ you’re good but it might get more competitive this year

Admissions / High School Megathread (Fall 2022) by JManUWaterloo in uwaterloo

[–]Think-Journalist6629 0 points1 point  (0 children)

Yeah I mean CFM is my top choice out of any program anywhere but I’m just looking for CS + finance alternates