Compare commits
17 Commits
6099a2ba81
...
85652eda0a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
85652eda0a | ||
|
|
08d9772861 | ||
|
|
37a4845807 | ||
|
|
473f894d51 | ||
|
|
6443bf8fd7 | ||
|
|
fe7a3bad42 | ||
|
|
c92f98eeca | ||
|
|
8b34595c76 | ||
|
|
90c9a77965 | ||
|
|
a39f089d63 | ||
|
|
8a1fabeae7 | ||
|
|
2ae58bbf99 | ||
|
|
61bb4cf7e8 | ||
|
|
db3ef07dfc | ||
|
|
a5c0115a4d | ||
|
|
306dc9e515 | ||
|
|
1e6dff4410 |
@ -6,6 +6,8 @@ jobs:
|
||||
name: cargo build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Ubuntu deps
|
||||
run: apt install libssl-dev
|
||||
- name: Restore cached toolchain
|
||||
id: cache-toolchain
|
||||
uses: actions/cache/restore@v4
|
||||
@ -55,8 +57,13 @@ jobs:
|
||||
key: ${{ steps.cache-project-dependencies.outputs.cache-primary-key }}
|
||||
|
||||
- name: Upload Release Binary
|
||||
uses: actions/upload-artifact@v3
|
||||
id: bot-artifact
|
||||
uses: christopherhx/gitea-upload-artifact@v4
|
||||
with:
|
||||
name: botrunner
|
||||
path: target/x86_64-unknown-linux-gnu/release/gongbotrs
|
||||
|
||||
- run: echo "Uploaded artifact, URL:" ${{ steps.bot-artifact.outputs.artifact-url }}
|
||||
|
||||
- name: Deploy with WebHook
|
||||
run: curl http://${{ secrets.SERVER_ADDR }}/hooks/gongbot-deploy?binaryzip='https://git.akulij.ru/akulij/gongbotrs/actions/runs/${{ gitea.run_number }}/artifacts/botrunner'
|
||||
|
||||
@ -704,6 +704,7 @@ async fn user_command_handler(
|
||||
);
|
||||
match cmd {
|
||||
UserCommands::Start(meta) => {
|
||||
bot.send_message(msg.chat.id, "Test2").await?;
|
||||
if !meta.is_empty() {
|
||||
user.insert_meta(&mut db, &meta).await?;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user