diff --git a/README.md b/README.md index 1420b30..765230a 100755 --- a/README.md +++ b/README.md @@ -61,13 +61,13 @@ To enable the bot to start automatically on system boot and run in the backgroun Edit the service file: ```bash - nano /etc/systemd/system/telegram-bot.service + sudo nano /etc/systemd/system/telegram-bot.service ``` Adjust the following parameters: - - `WorkingDirectory` - - `ExecStart` - - `User` + - WorkingDirectory + - ExecStart + - User 3. Enable and start the service: diff --git a/go.mod b/go.mod index 8f2ee83..db4f838 100755 --- a/go.mod +++ b/go.mod @@ -4,8 +4,7 @@ go 1.23 require ( github.com/go-telegram/bot v1.9.1 - github.com/joho/godotenv v1.5.1 - github.com/liushuangls/go-anthropic/v2 v2.8.1 + github.com/liushuangls/go-anthropic/v2 v2.8.2 golang.org/x/time v0.7.0 gorm.io/driver/sqlite v1.5.6 gorm.io/gorm v1.25.12 diff --git a/go.sum b/go.sum index f0e2490..da0e112 100755 --- a/go.sum +++ b/go.sum @@ -4,10 +4,8 @@ github.com/jinzhu/inflection v1.0.0 h1:K317FqzuhWc8YvSVlFMCCUb36O/S9MCKRDI7QkRKD github.com/jinzhu/inflection v1.0.0/go.mod h1:h+uFLlag+Qp1Va5pdKtLDYj+kHp5pxUVkryuEj+Srlc= github.com/jinzhu/now v1.1.5 h1:/o9tlHleP7gOFmsnYNz3RGnqzefHA47wQpKrrdTIwXQ= github.com/jinzhu/now v1.1.5/go.mod h1:d3SSVoowX0Lcu0IBviAWJpolVfI5UJVZZ7cO71lE/z8= -github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0= -github.com/joho/godotenv v1.5.1/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4= -github.com/liushuangls/go-anthropic/v2 v2.8.1 h1:pxFl88IgkG7e8Z1XwOYu48LcmEN0+6UdO58HF9altw0= -github.com/liushuangls/go-anthropic/v2 v2.8.1/go.mod h1:8BKv/fkeTaL5R9R9bGkaknYBueyw2WxY20o7bImbOek= +github.com/liushuangls/go-anthropic/v2 v2.8.2 h1:PbR9oQF3JDnU/hmbbQI+3tkCqNtdaw4K6S0YfzByl9I= +github.com/liushuangls/go-anthropic/v2 v2.8.2/go.mod h1:8BKv/fkeTaL5R9R9bGkaknYBueyw2WxY20o7bImbOek= github.com/mattn/go-sqlite3 v1.14.24 h1:tpSp2G2KyMnnQu99ngJ47EIkWVmliIizyZBfPrBWDRM= github.com/mattn/go-sqlite3 v1.14.24/go.mod h1:Uh1q+B4BYcTPb+yiD3kU8Ct7aC0hY9fxUwlHK0RXw+Y= golang.org/x/text v0.19.0 h1:kTxAhCbGbxhK0IwgSKiMO5awPoDQ0RpfiVYBfK860YM=