Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 98472

wont let me run node . in vsc terminal (making discord bot)

$
0
0

So im facing a problem where for me to cd to desktop i have to cd to onedrive first. Also in visual studio code when i try to get my bot online by doing node . nothing happens or no errors.

Well for the onedrive problem i disable it (well i think i did.) Still had to cd into onedrive to cd into desktop. So then i tried running account on local which didnt work also. For node . i tried googling it and watching videos nothing worked.

const Discord = require('discord.js');
const client = new Discord.client();

const token = '(my token)';

bot.on('ready', () =>{
    console.log('Bot is Online');
})

bot.login(token);

nothing happen this is what the terminal said when trying to get my discord bot online in vsc. PS C:\Users\dfkj1\OneDrive\Desktop\Discord Bot> node . PS C:\Users\dfkj1\OneDrive\Desktop\Discord Bot>


Viewing all articles
Browse latest Browse all 98472

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>