• Stars
    star
    216
  • Rank 183,179 (Top 4 %)
  • Language
    JavaScript
  • Created over 1 year ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Discord AI chatbot using Ollama

Discord AI Bot

Discord bot to interact with Ollama as a chatbot

Stars

Discord chat with the bot

Set-up instructions

  1. Install Node.js (if you have a package manager, use that instead to install this)
    • Make sure to install at least v14 of Node.js
  2. Install Ollama (ditto)
  3. Pull (download) a model, e.g ollama pull orca or ollama pull llama2
  4. Start Ollama by running ollama serve
  5. Create a Discord bot
    • Under Application Β» Bot
      • Enable Message Content Intent
      • Enable Server Members Intent (for replacing user mentions with the username)
  6. Invite the bot to a server
    1. Go to Application Β» OAuth2 Β» URL Generator
    2. Enable bot
    3. Enable Send Messages, Read Messages/View Channels, and Read Message History
    4. Under Generated URL, click Copy and paste the URL in your browser
  7. Rename .env.example to .env and edit the .env file
    • You can get the token from Application Β» Bot Β» Token, never share this with anyone
    • Make sure to change the model if you aren't using orca
    • Ollama URL can be kept the same unless you have changed the port
    • You can use multiple Ollama servers at the same time by separating the URLs with commas
    • Set the channels to the channel ID, comma separated
      1. In Discord, go to User Settings Β» Advanced, and enable Developer Mode
      2. Right click on a channel you want to use, and click Copy Channel ID
    • You can edit the system message the bot uses, or disable it entirely
  8. Start the bot with npm start
  9. You can interact with the bot by @mentioning it with your message

Set-up instructions with Docker

  1. Install Docker
    • Should be atleast compatible with version 3 of compose (docker engine 1.13.0+)
  2. Repeat steps 2β€”7 from the other setup instructions
  3. Start the bot with make compose-up if you have Make installed
    • Otherwise, try docker compose -p discord-ai up instead
  4. You can interact with the bot by @mentioning it with your message

More Repositories

1

imgfb

Draws a farbfeld or jpeg image to the Linux framebuffer
C
52
star
2

odus

A light-weight and highly configurable sudo alternative for Linux written in C
C
10
star
3

pixelcanvas-bot

A bot for https://pixelcanvas.io
JavaScript
7
star
4

Foto

πŸ–ΌοΈ Simple image viewer written in C
C
3
star
5

gameboy-nodejs

Gameboy emulator (serverboy front-end) written in Node.js
JavaScript
3
star
6

mekbhax

Cheat mod for Fabric
Java
3
star
7

json-parser

JSON parser in C
C
3
star
8

render

OpenGL program to render a text file of triangles
C
3
star
9

mekfetch

Simple neofetch alternative written in C, currently only works on Linux
C
3
star
10

bed-wars-shop-layout

Bed-wars shop layout Discord bot (messy code and unmaintained)
JavaScript
2
star
11

do

C program to call power actions so we can safely allow them in sudoers without allowing someone to add arguments or environment variables
C
2
star
12

SurvivalExtras

Extra features for survival servers
Java
2
star
13

http-server

Simple http server written in C
C
2
star
14

shapez-finder

shapez shape patch finder
JavaScript
2
star
15

shutdownprompt

Tkinter dialog for logging out, restarting, shutting down, and suspending
Python
2
star
16

backup-bot

Discord bot to backup and restore servers [not finished]
JavaScript
2
star
17

minesweeper

Minesweeper game in C
C
2
star
18

discord-themes

Discord themes
CSS
2
star
19

dotfiles

πŸš€ Personal dot files
Shell
2
star
20

emojipicker

simple rofi/dmenu emoji picker
Shell
2
star
21

sdl_particles

Polygon particles screensaver in SDL
C
2
star
22

suckless

my suckless configs
C
2
star
23

cape

minecraft custom optifine cape server
JavaScript
2
star
24

fetch

πŸ’» Customizable fetch program in bash using no external processes
Shell
2
star
25

pinball

OpenGL pinball game
C
1
star
26

hex

hexdump program in c
C
1
star
27

shapez-encoder-decoder

node.js program to encode and decode shapez saves
JavaScript
1
star
28

c-template

Linux C program template
C
1
star
29

gameboy

Gameboy emulator in C
C
1
star
30

emulator

C
1
star
31

reddit-share-link-shortener

Shortens Reddit share links for sharing the post or comment
JavaScript
1
star
32

font-to-braille-art

A tool to turn text to big characters using braille unicode characters (like ascii art)
JavaScript
1
star
33

vimterm

Tool to open vim in a terminal. Some programs will try to start vim without a terminal, so this tool will start vim in kitty.
C
1
star
34

tetris

Tetris clone written in C
C
1
star
35

2048

2048 game
C
1
star
36

hypixel-daily-reward

Module or CLI to get and select Hypixel daily rewards
JavaScript
1
star
37

timecmd

Run commands at certain times.
C
1
star
38

temmie

hOI!! i'm tEMMIE!!!
C
1
star
39

rss

A simple RSS client
JavaScript
1
star
40

todo

Simple to-do list written in C
C
1
star
41

LogicSimulator

A logic simulator written in Java
1
star
42

pinfo

A program to display information about running processes
C
1
star
43

recovery

Linux squashfs recovery environment
Shell
1
star
44

fetcho

https://github.com/CallMeEchoCodes/fetcho but rewritten in C
C
1
star
45

hashmap

Simple hashmap library in C
C
1
star
46

1

Simple cat/hexdump program
C
1
star
47

daysuntil

bash script to calculate the number of days, years, months, etc. until a target date or between two dates
Shell
1
star
48

ramlights

Uses OpenRGB to set lights of your RAM to display memory or swap usage
JavaScript
1
star
49

c-template-old

(old) quick C hello world example you can use as a template with Makefile
C
1
star
50

turtle-bot

Discord bot for auto-role and role menus
JavaScript
1
star
51

packs

Minecraft resource packs
1
star
52

tetris-3ds

https://github.com/mekb-turtle/tetris ported to 3ds homebrew
1
star
53

playcoin

3DS homebrew tool to set your Play Coin count. Credit goes to https://github.com/MrCheeze/playcoin
C
1
star
54

needsmorejpeg

wrapper for needsmorejpeg.com
JavaScript
1
star
55

clip

clipboard utility written in c, basically a cli wrapper for xclip
C
1
star
56

lsfs

List filesystems, df alternative
C
1
star
57

meklog

Node.js logging library, inspired by https://github.com/CallMeEchoCodes/simpllog
JavaScript
1
star
58

image-to-terminal

Show an image in the terminal
JavaScript
1
star
59

os

C
1
star
60

configs

my configs for stuff, such as bashrcs
Shell
1
star
61

copy

simple recursive copy utility in C
C
1
star
62

RemoteLights

Project to hook up infrared lights to a web server to use as smart lights
CSS
1
star
63

mekb-turtle.github.io

Personal website
Astro
1
star
64

bash-config

Bash shell config files
Shell
1
star
65

rubiks-cube

Rubik's cube simulator in C
C
1
star
66

discordbottemplate

A Discord bot template including command cooldown, invite link to self.
JavaScript
1
star
67

particle-life

Particle Life in C
C
1
star
68

SlabPlacement

Fabric mod to prevent placing double slabs
Java
1
star
69

chess

Simple chess program written in C using SDL2 and Nuklear [WIP]
C
1
star
70

mekbHomeAppliances

Fabric mod that adds tables and chairs
Java
1
star
71

nbt-convert

NBT converter written in C (WIP)
C
1
star
72

SnakeGame

Snake Game in Visual Basic
Visual Basic .NET
1
star
73

minesweeper-winforms

Minesweeper clone in C# winforms
C#
1
star
74

PortalGUI

Fabric mod to prevent portals from closing your GUI
Java
1
star
75

example-kernel-module

Example kernel module to display "hello world" in a character device file
C
1
star
76

linear-intersection

Find the intersection of two lines
C
1
star