Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/compeydev/discord-status-action
GitHub action to update your discord status in a file using the Lanyard API.
https://github.com/compeydev/discord-status-action
api discord git lanyard status
Last synced: about 3 hours ago
JSON representation
GitHub action to update your discord status in a file using the Lanyard API.
- Host: GitHub
- URL: https://github.com/compeydev/discord-status-action
- Owner: CompeyDev
- License: mit
- Created: 2022-03-24T10:58:03.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-04T11:09:02.000Z (3 months ago)
- Last Synced: 2024-11-06T11:09:29.526Z (1 day ago)
- Topics: api, discord, git, lanyard, status
- Language: JavaScript
- Homepage: https://github.com/Phineas/lanyard
- Size: 2.59 MB
- Stars: 17
- Watchers: 2
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Discord Status Action
This action fetches the status of a given user and updates that on a file.
- **Online**
- **Idle**
- **Do not disturb**
- **Streaming**
- **Offline**## Inputs
### `file`
**Required** This is the file you want to action to update your status at.
### `id`
**Required** The user whose discord status you want to fetch. Note that this must be a string for the action to work.
## Example usage
```yml
on:
schedule: [{cron: "*/7 * * * *"}]
workflow_dispatch:
push: {branches: ["master", "main"]}jobs:
status:
runs-on: ubuntu-latest
name: Update Discord Status
steps:
- name: Checkout files
uses: actions/checkout@v3
- name: Update Status
uses: CompeyDev/[email protected]
with:
file: README.md
id: "893762371770802227" # Replace with your Discord User ID.
- name: Commit and push if there are changes
run: |-
git diff
git config --global user.email "[email protected]" # Replace with an email associated to your GitHub Account.
git config --global user.name "StatsBot"
git diff --quiet || (git add -u && git commit -m "🚀 Update Discord Status")
git push
```---
### Discord Status: 🟢
---This repository is licensed under a [MIT](https://compeydev.mit-license.org) License.