Get rid of the unwanted spam joins out of the box
Basically, that what happens, if the bot is set up in your chat:
Don't hesitate to contact me
Ok, I've got something for ya.
/lang ru
to change chat language.I respect your privacy, so I do NOT log messages nor collecting personal data. This bot is hosted on my personal VDS instance, and it's completely private. Happy chatting!
git clone
:arrow_upper_right: or by downloading zip and extracting it.docker compose build --build-arg NG_TOKEN=<REPLACE_THIS> --build-arg OPENAI_API_KEY=<REPLACE_THIS>
docker compose up -d --no-recreate
/lang ru
(see below for the complete list of available languages)docker compose stop
to stop bot docker compose start
to get it up and running again.docker compose down
to remove bot's artifacs.rm ~/.ngbot/bot.db
to start clean.NG_DIR=${GOPATH-$HOME/go}/src/github.com/iamwavecut/ngbot
git clone git@github.com:iamwavecut/ngbot.git ${NG_DIR}
cd ${NG_DIR}
NG_TOKEN=<REPLACE_THIS>
OPENAI_API_KEY=<REPLACE_THIS>
docker build . --build-arg NG_TOKEN=$NG_TOKEN --build-arg OPENAI_API_KEY=$OPENAI_API_KEY -t ngbot
// token gets baked into container, so you just simply
docker run ngbot
Override baked variables by providing them as runtime flags
docker run -e NG_TOKEN=<ANOTHER_TOKEN> -e OPENAI_API_KEY=<ANOTHER_OPENAI_API_KEY> ngbot
NG_DIR=${GOPATH-$HOME/go}/src/github.com/iamwavecut/ngbot
git clone git@github.com:iamwavecut/ngbot.git ${NG_DIR}
cd ${NG_DIR}
NG_TOKEN=<REPLACE_THIS>
NG_LANG=en
NG_HANDLERS=admin,gatekeeper
NG_LOG_LEVEL=6
OPENAI_API_KEY=<REPLACE_THIS>
OPENAI_BASE_URL=https://api.openai.com/v1
OPENAI_MODEL=gpt-4o-mini
CGO_ENABLE=1 go run .
All configuration is meant to be passed as build time arguments, however, you are free to modify env vars at runtime at your own risk.
Required | Variable name | Description | Default | Options |
---|---|---|---|---|
:heavy_check_mark: | NG_TOKEN |
Telegram BOT API token | ||
:x: | NG_LANG |
Default language to use in new chats. | en |
be, bg , cs , da , de , el , en , es , et , fi , fr , hu , id , it , ja , ko , lt , lv , nb , nl , pl , pt , ro , ru , sk , sl , sv , tr , uk , zh |
:x: | NG_HANDLERS |
If for some silly reason you want to get rid of admin or gateway function. Or if you are awesome and want to add yours. Or to change an invocation order. Go for it! | admin,gatekeeper,reactor |
any combination of comma-separated default items. |
:x: | NG_LOG_LEVEL |
Limits the logs spam, maximum verbosity by default. | 6 |
0 =Panic, 1 =Fatal, 2 =Error, 3 =Warn, 4 =Info, 5 =Debug, 6 =Trace |
:heavy_check_mark: | OPENAI_API_KEY |
OpenAI API key to use for the reactor. | ||
:x: | OPENAI_MODEL |
OpenAI model to use for the reactor. | gpt-4o-mini |
gpt-4o , gpt-4o-mini , ... |
:x: | OPENAI_BASE_URL |
OpenAI API base URL to use for the reactor. | https://api.openai.com/v1 |
Any valid OpenAI API compliantbase URL |
Feel free to add your requests in issues.