Closed clashwithA closed 6 years ago
@Dragory
Please make sure you're in the correct folder with CMD when you run the command.
I am in Modmail-master folder with cmd... is that the correct folder? @Dragory
Im talking about this @Dragory
That means that you have not installed NodeJS correctly. If you did, try restarting before running the commands.
Where do i get NodeJS from? Also you have any other form of contact other than GitHub? like discord @Dragory
You can find instructions for installing NodeJS on your platform at https://nodejs.org/ (install version 8, not 9). Also, no, sorry, I don't offer support for the bot outside GitHub issues.
I type -npm start and this came up.. what should i do? @Dragory
Please read and go through the instructions at https://github.com/Dragory/modmailbot/blob/master/README.md#setup. You're missing step 4, the config file.
i did that... i copied and changed it to my own stuff @Dragory
Check the path and especially the file extension. The error says it can't find the config.json
file in the modmailbot-master
folder.
After checking the path and trying again this came up.. im so sorry for asking too many questions.. we need to bot so bad.. (over 400 members on the server) also what should i do? thx @Dragory
The command is npm start
, not npm run
😛
After typing that in i get this and i followed step 4
so i tried again but this time in a folder:
here is the overview of config.json:
please tell me where im making a mistake and thx @Dragory
Your file is currently named config.json.json
- make sure it's just config.json
. If you have file extensions hidden in Windows (they are by default), try renaming it to just config
.
The bot works but when i get someone to message it and it goes offline and doesn't show in the inbox server also when it does in the server i try to close it and a whole bunch of errors come up in cmd and the bot goes offline...
@Dragory
Please post those errors
do you have discord? it will take me a long time... @Dragory
never mind look below
There you go @Dragory
Can you get a picture from further up?
There you go @Dragory
Try setting logChannelId
in the config file. It should be set to a channel ID on the inbox server (the bot will post log links to closed threads etc. there).
I forgot to add this to the README since the option wasn't required until Discord removed default channels last year, sorry!
I dont understand what you mean... Help? @Dragory
When i type a message the bot goes offline without responding @Dragory
I tried the Logchannel thing but it keep on giving me errors when i message the bot and it doesn't respond
Make sure you added logChannelId like this:
It could also be a corrupted thread database. Remove db/threads.json
and restart the bot and see if that works.
Also, seems like the error message contained your bot's token as well, so I recommend resetting that (and then changing the token in config.json
to the new token).
Thx it works now... for now lol... Just a question how do i make this bot online forever?
To keep the bot online forever, you'd need to run it on a PC that's online forever. Usually this means a virtual server rented from a provider such as DigitalOcean, but that's its own can of worms to set up.
Heroku can make it work as well am I right? @dragory
Should work, though I haven't tried hosting it on Heroku myself, so no guarantees.
I will add the token and it will detect the bot and then it should host it itself... I will let you know if it works... It should be good to add it to your how to host it on a server if it works
@clashwithA if this issue is resolved, please close it; if not, what's the ongoing trouble?
Hey.. today i tried to et up the bot and in cmd i typed npm install and it said there is no file something like that... can you help me please also dont hesitate to ask me for more info