From a8bfc40ef3a2c7f22d46535a22ae105aa54ab47a Mon Sep 17 00:00:00 2001 From: Nate <96147421+0xperp@users.noreply.github.com> Date: Fri, 2 Feb 2024 17:35:45 -0500 Subject: [PATCH] Update README.md --- README.md | 39 +-------------------------------------- 1 file changed, 1 insertion(+), 38 deletions(-) diff --git a/README.md b/README.md index d82891778..a0ab21a80 100644 --- a/README.md +++ b/README.md @@ -1,43 +1,6 @@ # Adjacent Book Bot -serverless telegram bot on cf workers - -The original `worker.js` is the content of Nikhil John's -https://github.com/nikhiljohn10/telegram-bot-worker which is licensed with MIT. -My modifications are licensed under the Apache license. - -The first bot configuration is fully featured, and responds to all received -messages with llama2 if a command isn't found. - -To get continuous conversation with llama2 working make sure you add a database -to your wrangler.toml and initailize it with the schema.sql - -To use the deploy button: - -- Click the deploy button -- Navigate to your new **GitHub repository > Settings > Secrets** and add the following secrets: - - ```yaml - - Name: CF_API_TOKEN (should be added automatically) - - Name: CF_ACCOUNT_ID (should be added automatically) - - - Name: SECRET_TELEGRAM_API_TOKEN - - Value: your-telegram-bot-token - ``` - -- Push to `master` to trigger a deploy - -To fork this repo and use wrangler: - -- Click fork -- `npm i -g wrangler` -- `wrangler secret put SECRET_TELEGRAM_API_TOKEN` and set it to your telegram - bot token -- `wrangler d1 create llama2` -- put the database block from the command in your wrangler.toml -- `wrangler d1 execute llama2 --file ./schema.sql` -- `wrangler deploy` -- Done! +Serverless telegram bot on cf workers ## Getting started with cf-workers-telegram-bot