Ok so I’m not at my pc but I remember this it says Message = message.tostring and it says message is undefined and the other error is coinFlip is undefined
var Message = Message.toString();
if(Message.startsWith("!")){
var fullCmd = Message.slice(1);
if(fullCmd.startsWith(“flip”)){
coinFlipCommand(Message);
here is the code var is line 30its also says message s undefined and its says could not find coinflip
Hi again, yeah we need the code from before this, where you define Message!
It looks like the casing has changed since your last message, which could be a cause for errors/confusion… is it message or Message?
Drop the whole start of your server.js if you can.
Also, if you put it in triple backticks (```) it will do code formatting like this:
var Message = Message.toString();
if(Message.startsWith("!")){
var fullCmd = Message.slice(1);
if(fullCmd.startsWith(“flip”)){
coinFlipCommand(Message);
here is the code var is line 30its also says message s undefined and its says could not find coinflip
If you posted your entire file that would help a lot. If your bot token is in your file, first off, use .env, but also remove that line as we dont want people randomly logging into your bot.