README tweaks

This commit is contained in:
Phin 2023-02-28 18:05:53 +05:30
parent 0c9bd7122d
commit 48c7cc6013
4 changed files with 24 additions and 18 deletions

View file

@ -1,15 +1,23 @@
name: Close Pull Requests name: Close pull requests
on: on:
pull_request_target: pull_request_target:
workflow_dispatch:
inputs:
prNumber:
type: string
required: true
description: Pull Request Number
jobs: jobs:
close-prs: comment-and-close:
runs-on: ubuntu-latest runs-on: ubuntu-latest
permissions: permissions:
pull-requests: write pull-requests: write
contents: write env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
PR_NUMBER: ${{ github.event.number || inputs.prNumber }}
steps: steps:
- env: - name: Comment
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: gh pr comment ${{ env.PR_NUMBER }} --body "This repository does not accept pull requests."
run: | - name: Close
gh pr comment --repo=${{ github.repository }} ${{ github.event.number }} --body "This repository does not accept pull requests." run: gh pr close ${{ env.PR_NUMBER }}
gh pr close --repo=${{ github.repository }} ${{ github.event.number }}

8
.gitignore vendored
View file

@ -1,5 +1,5 @@
config.json
cache.json
lint.bat
console.log
Showcase.psd Showcase.psd
cache.json
config.json
console.log
lint.bat

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2018-2022 phin05 Copyright (c) 2018-2023 phin05
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -2,11 +2,11 @@
![Showcase](https://user-images.githubusercontent.com/59180111/168054648-af0590fd-9bd7-42d0-91b2-d7974643debd.png) ![Showcase](https://user-images.githubusercontent.com/59180111/168054648-af0590fd-9bd7-42d0-91b2-d7974643debd.png)
A Python script that displays your [Plex](https://www.plex.tv/) status on [Discord](https://discord.com/) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to). Discord Rich Presence for Plex is a Python script that displays your [Plex](https://www.plex.tv/) status on [Discord](https://discord.com/) using [Rich Presence](https://discord.com/developers/docs/rich-presence/how-to).
Current Version: 2.3.2 [![Latest Release](https://shields.io/badge/Latest%20Release-v2.3.2-informational)](https://github.com/phin05/discord-rich-presence-plex/archive/refs/heads/master.zip)
## Getting Started ## Usage
1. Install [Python 3.10](https://www.python.org/downloads/) - Make sure to tick "Add Python 3.10 to PATH" during the installation. 1. Install [Python 3.10](https://www.python.org/downloads/) - Make sure to tick "Add Python 3.10 to PATH" during the installation.
2. Download [this repository's contents](https://github.com/phin05/discord-rich-presence-plex/archive/refs/heads/master.zip). 2. Download [this repository's contents](https://github.com/phin05/discord-rich-presence-plex/archive/refs/heads/master.zip).
@ -21,8 +21,6 @@ The script must be running on the same machine as your Discord client.
## Configuration - `config.json` ## Configuration - `config.json`
### Reference
* `logging` * `logging`
* `debug` (boolean, default: `true`) - Outputs additional debug-helpful information to the console if enabled. * `debug` (boolean, default: `true`) - Outputs additional debug-helpful information to the console if enabled.
* `writeToFile` (boolean, default: `false`) - Writes everything outputted to the console to a `console.log` file if enabled. * `writeToFile` (boolean, default: `false`) - Writes everything outputted to the console to a `console.log` file if enabled.