blob: 81b1fd425ecb1440721ecfbacdea1a3cdefbeccd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# how to run ts bullshit
first you need ollama installed
```console
$ pacman -S ollama
#or whatever packet manager you have
#alternatively,
$curl -fsSL https://ollama.com/install.sh | sh
```
then your python dependencies are
``` console
$ pip install ollama websockets discord
```
# once you install your dependencies
you run this
```console
#i think ollama still needs to server i'm not too sure
$ ollama serve & #or make it a service with systemd or whatever
$ ollama pull <your model>
$ ollama pull <your embedding model>
#test it with
$ ollama run <your model>
```
if that runs fine then you can
- add your discord bot token and discord server id to your .env which is not .env but ./files/config/tokens
- add the bot to your server
- you'll probably want to change the system prompt which is found in bot.py
# have fun
|