{"_id":"@areschang/tbot","_rev":"5-bba4551d09852900913e68de3ce3eac1","name":"@areschang/tbot","description":"A chatbot that runs on the terminal","dist-tags":{"latest":"0.0.5"},"versions":{"0.0.3":{"name":"@areschang/tbot","version":"0.0.3","keywords":["Terminal Chat","Terminal Bot","Chat Bot"],"author":{"name":"AresChang","email":"areschang114@qq.com"},"license":"MIT","_id":"@areschang/tbot@0.0.3","maintainers":[{"name":"areschang","email":"areschang114@qq.com"}],"homepage":"https://github.com/Ares-Chang/tbot#readme","bugs":{"url":"https://github.com/Ares-Chang/tbot/issues"},"bin":{"chat":"bin/index.mjs","tbot":"bin/index.mjs"},"dist":{"shasum":"bf1b62dcd7e58a29685b18127f890ea676be802a","tarball":"https://registry.npmjs.org/@areschang/tbot/-/tbot-0.0.3.tgz","fileCount":10,"integrity":"sha512-6EguMR+g/H+aeCejDYKzgkyaH1FRdqfRRhRpC/sxjfyusfft0++XYMajS6oHZSf8dEVs/OiEsd1A0k9bc3A84w==","signatures":[{"sig":"MEYCIQDfUvGXw4YJbWmtR0Xxb9BmEpQPGSoHOKABHrcFmFrO9wIhALLvwDzNkOTG12LUY2Od5zL3y7SAL7DqzewKro7JD7Uh","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":10751},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"381c04b010120e886b7244cd0214f6df7cbb45be","scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","build":"unbuild","start":"cross-env NODE_ENV=development esno src/index.ts","prepare":"simple-git-hooks","release":"bumpp && npm publish","typecheck":"tsc --noEmit","prepublishOnly":"nr build"},"_npmUser":{"name":"areschang","email":"areschang114@qq.com"},"repository":{"url":"git+https://github.com/Ares-Chang/tbot.git","type":"git"},"_npmVersion":"10.1.0","description":"A chatbot that runs on the terminal","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"20.9.0","dependencies":{"dotenv":"^16.4.5","openai":"^4.47.2"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@9.1.1","devDependencies":{"esno":"^4.7.0","pnpm":"^9.1.1","vite":"^5.2.11","bumpp":"^9.4.1","eslint":"^9.3.0","rimraf":"^5.0.7","vitest":"^1.6.0","unbuild":"^2.0.0","@antfu/ni":"^0.21.12","cross-env":"^7.0.3","typescript":"^5.4.5","@types/node":"^20.12.12","lint-staged":"^15.2.2","@antfu/utils":"^0.7.8","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^2.18.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/tbot_0.0.3_1718782439140_0.8980959573674958","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@areschang/tbot","version":"0.0.4","keywords":["Terminal Chat","Terminal Bot","Chat Bot"],"author":{"name":"AresChang","email":"areschang114@qq.com"},"license":"MIT","_id":"@areschang/tbot@0.0.4","maintainers":[{"name":"areschang","email":"areschang114@qq.com"}],"homepage":"https://github.com/Ares-Chang/tbot#readme","bugs":{"url":"https://github.com/Ares-Chang/tbot/issues"},"bin":{"chat":"bin/index.mjs","tbot":"bin/index.mjs"},"dist":{"shasum":"0e2a68dc28ed7615cd4b82bd21be65ac72ab9ab2","tarball":"https://registry.npmjs.org/@areschang/tbot/-/tbot-0.0.4.tgz","fileCount":10,"integrity":"sha512-NnFWFhD1sRVy0XfrBG4vH81X1P7oY9hqPnqpTcNA9nzUljZGSOsKHLmN1U6QEw/lrcqo50D3EHBb/gVOSB7hKw==","signatures":[{"sig":"MEQCIFVT7+df5jbzc0Jd0xK9yJM/LOEiZg/AWY+4YQeXhet/AiBAVBolj84iWiU6zVnCWNY0Iuo2M9+PHai3GXWlw0XcUg==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11214},"main":"./dist/index.mjs","type":"module","types":"./dist/index.d.ts","module":"./dist/index.mjs","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"gitHead":"c945cbbd1eb2250657dc95f4f68bdb0063203e91","scripts":{"dev":"unbuild --stub","lint":"eslint .","test":"vitest","build":"unbuild","start":"cross-env NODE_ENV=development esno src/index.ts","prepare":"simple-git-hooks","release":"bumpp && npm publish","typecheck":"tsc --noEmit","prepublishOnly":"nr build"},"_npmUser":{"name":"areschang","email":"areschang114@qq.com"},"repository":{"url":"git+https://github.com/Ares-Chang/tbot.git","type":"git"},"_npmVersion":"10.1.0","description":"A chatbot that runs on the terminal","directories":{},"lint-staged":{"*":"eslint --fix"},"sideEffects":false,"_nodeVersion":"20.9.0","dependencies":{"ora":"^8.0.1","dotenv":"^16.4.5","openai":"^4.47.2"},"typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"_hasShrinkwrap":false,"packageManager":"pnpm@9.1.1","devDependencies":{"esno":"^4.7.0","pnpm":"^9.1.1","vite":"^5.2.11","bumpp":"^9.4.1","eslint":"^9.3.0","rimraf":"^5.0.7","vitest":"^1.6.0","unbuild":"^2.0.0","@antfu/ni":"^0.21.12","cross-env":"^7.0.3","typescript":"^5.4.5","@types/node":"^20.12.12","lint-staged":"^15.2.2","@antfu/utils":"^0.7.8","simple-git-hooks":"^2.11.1","@antfu/eslint-config":"^2.18.1"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"_npmOperationalInternal":{"tmp":"tmp/tbot_0.0.4_1718850615970_0.8345250921966643","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@areschang/tbot","type":"module","version":"0.0.5","packageManager":"pnpm@9.1.1","description":"A chatbot that runs on the terminal","author":{"name":"AresChang","email":"areschang114@qq.com"},"license":"MIT","homepage":"https://github.com/Ares-Chang/tbot#readme","repository":{"type":"git","url":"git+https://github.com/Ares-Chang/tbot.git"},"bugs":{"url":"https://github.com/Ares-Chang/tbot/issues"},"keywords":["Terminal Chat","Terminal Bot","Chat Bot"],"sideEffects":false,"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.cjs"}},"main":"./dist/index.mjs","module":"./dist/index.mjs","types":"./dist/index.d.ts","typesVersions":{"*":{"*":["./dist/*","./dist/index.d.ts"]}},"bin":{"tbot":"bin/index.mjs","chat":"bin/index.mjs"},"scripts":{"build":"unbuild","dev":"unbuild --stub","lint":"eslint .","prepublishOnly":"nr build","release":"bumpp && npm publish","start":"cross-env NODE_ENV=development esno src/index.ts","test":"vitest","typecheck":"tsc --noEmit","prepare":"simple-git-hooks"},"dependencies":{"chalk":"^5.3.0","dotenv":"^16.4.5","openai":"^4.47.2","ora":"^8.0.1"},"devDependencies":{"@antfu/eslint-config":"^2.18.1","@antfu/ni":"^0.21.12","@antfu/utils":"^0.7.8","@types/node":"^20.12.12","bumpp":"^9.4.1","cross-env":"^7.0.3","eslint":"^9.3.0","esno":"^4.7.0","lint-staged":"^15.2.2","pnpm":"^9.1.1","rimraf":"^5.0.7","simple-git-hooks":"^2.11.1","typescript":"^5.4.5","unbuild":"^2.0.0","vite":"^5.2.11","vitest":"^1.6.0"},"simple-git-hooks":{"pre-commit":"pnpm lint-staged"},"lint-staged":{"*":"eslint --fix"},"_id":"@areschang/tbot@0.0.5","gitHead":"90b674404d406222df0b7565dc474a25ba4330fb","_nodeVersion":"20.9.0","_npmVersion":"10.1.0","dist":{"integrity":"sha512-gjCqmN4JOQjpYVkHF64pUUQa8IOWfME8nwST16UXDiJDtl2wDA5a+G6GI75Yx6VJPjvM84g33XamsH5XVzXq8Q==","shasum":"4a9e8ae62bb519c282fa49d3ce5d396c1dfd5c5a","tarball":"https://registry.npmjs.org/@areschang/tbot/-/tbot-0.0.5.tgz","fileCount":10,"unpackedSize":12562,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDSVRAQyYjCzOYnvvswZvv2JSHKfqscHJrAhCA9eKxB8AiBQluwJRHRk5foa4CsPy0VQkm0dNETIw54tS2d60dyH4Q=="}]},"_npmUser":{"name":"areschang","email":"areschang114@qq.com"},"directories":{},"maintainers":[{"name":"areschang","email":"areschang114@qq.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/tbot_0.0.5_1718875277280_0.850389653685419"},"_hasShrinkwrap":false}},"time":{"created":"2024-06-19T07:33:59.034Z","modified":"2024-06-20T09:21:17.602Z","0.0.2":"2024-06-14T08:46:19.682Z","0.0.3":"2024-06-19T07:33:59.293Z","0.0.4":"2024-06-20T02:30:16.174Z","0.0.5":"2024-06-20T09:21:17.425Z"},"maintainers":[{"name":"areschang","email":"areschang114@qq.com"}],"author":{"name":"AresChang","email":"areschang114@qq.com"},"repository":{"type":"git","url":"git+https://github.com/Ares-Chang/tbot.git"},"keywords":["Terminal Chat","Terminal Bot","Chat Bot"],"license":"MIT","homepage":"https://github.com/Ares-Chang/tbot#readme","bugs":{"url":"https://github.com/Ares-Chang/tbot/issues"},"readme":"<p align='center'>\r\n<b>简体中文</b> | <a href=\"https://github.com/Ares-Chang/tbot/blob/master/README.en-US.md\">English</a>\r\n</p>\r\n\r\n# tbot\r\n\r\n运行在终端上的聊天机器人\r\n\r\n<p align='center'>\r\n  <img src='https://github.com/Ares-Chang/tbot/assets/36911513/58ac8ec0-713d-4c04-afe7-476e6e5ced38' alt='tbot' width='800'/>\r\n</p>\r\n\r\n## Use\r\n\r\n通过 NPM 进行全局安装\r\n```bash\r\nnpm install @areschang/tbot -g\r\n```\r\n\r\n键入以下命令，唤醒聊天机器人\r\n```bash\r\ntbot # or chat\r\n```\r\n\r\n键入 `exit` 退出程序运行\r\n\r\n## Config\r\n\r\n项目初次运行会在用户目录下新建一个名为 `.tbot` 的配置文件，基本配置为下:\r\n\r\n```bash\r\n# ~\\.tbot\r\nTBOT_BASE_URL = https://api.chatanywhere.com.cn # 请求基本路径\r\nTBOT_OPENAI_API_KEY = 'You Keys' # 请填充自己的 api key\r\nTBOT_MODEL = gpt-3.5-turbo # 模型类型\r\nTBOT_MESSAGE_MAX = 10 # 聊天携带历史信息数\r\nTBOT_USER_NAME = You # 用户昵称\r\nTBOT_BOT_NAME = Bot # 机器人昵称\r\nTBOT_USER_NAME_COLOR = '#61afef' # 用户昵称颜色\r\nTBOT_BOT_NAME_COLOR = '#c678dd' # 机器人昵称颜色\r\nTBOT_BOT_TEXT_COLOR = '#d1d5db' # 机器人文本颜色\r\n```\r\n\r\n配置内容可按需更改\r\n\r\n> 默认请求路径为国内中转程序，基于 [GPT_API_free](https://github.com/chatanywhere/GPT_API_free) 项目提供，仅供学习，感谢！\r\n","readmeFilename":"README.md"}