Hi! I see you are interested in this project or something
How to run (development mode):
git clone https://github.com/PCelestia/sani.gitthencd sani(pretty standard stuff lol)npm install(still standard stuff lol)- create a
.envfile at the root of thesanirepository, and put one line containingTOKEN=abcdefggin it. Replaceabcdefggwith your bot token. It's ok if your text editor inserts a newline at the end of the file. - run
npm run buildto compile the typescript to javascript. then runnpm startto run it. Alternatively, runnpm run buildandbotto build and run the bot.
How to run (production mode):
git clone https://github.com/PCelestia/sani.gitthencd sani(pretty standard stuff lol)npm install(still standard stuff lol)- set the environment variables
TOKENandNODE_ENVhowever you want.TOKENis your bot token, andNODE_ENVshould beproductionorprod. - run
npm run buildto build the bot, then runnpm pruneto remove dev dependencies that are not needed in production. - to start the bot run
npm start