* Add: skeleton suite for command tests (#119) * test naming updated * fix imports, remove old references * added code coverage badge * Add: coverage environment * Fix: Readme hyperlink to coverage workflow * grab coverage pct from env * Update: gist hyperlink * color range on coverage * fix contributing, simplify coverage assessment * lmiit coverage to master, add branch naming conventions --------- Co-authored-by: Kevin Dang <77701718+kevinthedang@users.noreply.github.com>
2.2 KiB
2.2 KiB
Naming Conventions
- Branches
- prefix your branch name with the type of contribution:
- features:
'feature/**' - releases:
'releases/**' - bugs:
'bug/**'
- features:
- prefix your branch name with the type of contribution:
Run the Bot
- Refer to all sections below before running the bot.
- You should now have
Ollama,NodeJS, rannpm install. - You will also need a discord bot to run. Refer to the developer portal to learn how to set one up and invite it to your server. If that does not help then look up a YouTube video like this one.
- Now run
npm run clientto run the client (this must be done in wsl or a Linux distro)
Set up (Development-side)
- Pull the repository using
https://github.com/kevinthedang/discord-ollama.git. - Refer to
Environment Setupin the readme to set up Ollama.- This must be set up in a Linux environment or wsl2.
- Install NodeJS
v18.18.2- You can check out
Resourcesin the readme for a bit of help. - You can also reference NodeJS Setup
- You can check out
- When you have the project pulled from github, open up a terminal and run
npm iornpm installto get all of the packages for the project. - In some kind of terminal (
git bashis good) to run the client. You can run Ollama but opening up wsl2 and typingollama serve.- Refer to
Ollama Setupif there are any issues.
- Refer to
Environment
- You will need an environment file:
.env: for running the bot- Please refer to
.env.samplefor all environment variables to include
- Please refer to
NodeJS Setup
- Install nvm using
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash- Ensure this in the profile of what shell you use (for
git bashit would be.bash_profilefound in your home directory)
- Ensure this in the profile of what shell you use (for
- Ensure it has been install correctly by running
nvm -v - Now, install
v18.18.2by runningnvm install 18.18.2 - Then run
nvm use 18.18.2 | nvm alias default 18.18.2or you can run them separately if that does not work. This just sets the default NodeJS tov18.18.2when launching a shell.