Compare commits
3 Commits
85652eda0a
...
6099a2ba81
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6099a2ba81 | ||
|
|
7bd3df4d81 | ||
|
|
1bb3970fa6 |
@ -6,8 +6,6 @@ jobs:
|
|||||||
name: cargo build
|
name: cargo build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install Ubuntu deps
|
|
||||||
run: apt install libssl-dev
|
|
||||||
- name: Restore cached toolchain
|
- name: Restore cached toolchain
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
@ -63,7 +61,6 @@ jobs:
|
|||||||
name: botrunner
|
name: botrunner
|
||||||
path: target/x86_64-unknown-linux-gnu/release/gongbotrs
|
path: target/x86_64-unknown-linux-gnu/release/gongbotrs
|
||||||
|
|
||||||
- run: echo "Uploaded artifact, URL:" ${{ steps.bot-artifact.outputs.artifact-url }}
|
|
||||||
|
|
||||||
- name: Deploy with WebHook
|
- name: Deploy with WebHook
|
||||||
|
# temporary solutino to hardcode artifact url, because upload-artifact's artifact-url gives wrong one
|
||||||
run: curl http://${{ secrets.SERVER_ADDR }}/hooks/gongbot-deploy?binaryzip='https://git.akulij.ru/akulij/gongbotrs/actions/runs/${{ gitea.run_number }}/artifacts/botrunner'
|
run: curl http://${{ secrets.SERVER_ADDR }}/hooks/gongbot-deploy?binaryzip='https://git.akulij.ru/akulij/gongbotrs/actions/runs/${{ gitea.run_number }}/artifacts/botrunner'
|
||||||
|
|||||||
@ -704,7 +704,6 @@ async fn user_command_handler(
|
|||||||
);
|
);
|
||||||
match cmd {
|
match cmd {
|
||||||
UserCommands::Start(meta) => {
|
UserCommands::Start(meta) => {
|
||||||
bot.send_message(msg.chat.id, "Test2").await?;
|
|
||||||
if !meta.is_empty() {
|
if !meta.is_empty() {
|
||||||
user.insert_meta(&mut db, &meta).await?;
|
user.insert_meta(&mut db, &meta).await?;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user