Hi! I see you are interested in this project or something
How to run (development mode):
git clone https://github.com/PCelestia/sani.git
thencd sani
(pretty standard stuff lol)npm install
(still standard stuff lol)- create a
.env
file at the root of thesani
repository, and put one line containingTOKEN=abcdefgg
in it. Replaceabcdefgg
with your bot token. It's ok if your text editor inserts a newline at the end of the file. - run
npm run build
to compile the typescript to javascript. then runnpm start
to run it. Alternatively, runnpm run buildandbot
to build and run the bot.
How to run (production mode):
git clone https://github.com/PCelestia/sani.git
thencd sani
(pretty standard stuff lol)npm install
(still standard stuff lol)- set the environment variables
TOKEN
andNODE_ENV
however you want.TOKEN
is your bot token, andNODE_ENV
should beproduction
orprod
. - run
npm run build
to build the bot, then runnpm prune
to remove dev dependencies that are not needed in production. - to start the bot run
npm start