Skip to content

Commit

Permalink
feat: Add run.sh helper
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisTM committed Feb 25, 2024
1 parent fd868ca commit 7bd6869
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/usr/bin/env bash

if [ -z "$1" ]; then
echo """DISCORD_BOT_TOKEN=[TOKEN] ./run.sh name_of_bot
This is creating the ollama modelfile and running the bot.
"""
exit 1
fi

BASEDIR=$(dirname $0)
ollama create ${1} -f ${BASEDIR}/modelfiles/${1}.modelfile
cargo run --release ${BASEDIR}/gods/${1}.json

0 comments on commit 7bd6869

Please sign in to comment.