Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
5hojib committed Jul 11, 2024
1 parent 1693318 commit 7d461aa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,19 @@ jobs:
run: |
ruff check . --fix --exit-zero
git add -u
git status
if git diff-index --quiet HEAD --; then
echo "No changes to commit."
exit 1
else
git status
fi
- name: Commit and push changes
if: success()
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git commit -m "Auto-format code using ruff"
git push origin ${{ github.ref }}
env:
GITHUB_TOKEN: ${{ secrets.GX_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GX_TOKEN }}
3 changes: 2 additions & 1 deletion bot/modules/mirror_leech.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
@new_task
async def _mirror_leech(client, message, isQbit=False, isLeech=False, sameDir=None, bulk=[]):
await send_react(message)
user_id = message.from_user.id
user = message.from_user or message.sender_chat
user_id = user.id
user_dict = user_data.get(user_id, {})
text = message.text.split('\n')
input_list = text[0].split(' ')
Expand Down

0 comments on commit 7d461aa

Please sign in to comment.