Huskehhh / dayz-monitor

DayZ server monitoring discord bot
6 stars 0 forks source link

DISCORD_TOKEN NotPresent #9

Closed PumpkinEater0069 closed 1 year ago

PumpkinEater0069 commented 1 year ago

Hey there. Unfortunately i am having issues to get the Bot running.

It always gets stuck with the discord bot token.

is there any special name i need to give my .env file or what else could be the issue? monitor error

Huskehhh commented 1 year ago

Hi,

Your .env file should contain

DISCORD_TOKEN=paste-token-here
PumpkinEater0069 commented 1 year ago

Well... that's what i did and i am confused about.

I tried to follow your guide but it doesn't work for me

Huskehhh commented 1 year ago

Ensure that the .env file is in the same directory that you are running cargo run --release, alternatively, run the command like so:

DISCORD_TOKEN=paste-token-here cargo run release