From 6c011769368c2b5ba2eee12d866a313884c98fa4 Mon Sep 17 00:00:00 2001 From: Hafitz Setya Date: Thu, 16 Sep 2021 09:26:27 +0700 Subject: [PATCH] Update issue template Signed-off-by: breakdowns --- .github/ISSUE_TEMPLATE/bug_report.md | 26 --------------- .github/ISSUE_TEMPLATE/bug_report.yml | 39 ++++++++++++++++++++++ .github/ISSUE_TEMPLATE/config.yml | 8 +++++ .github/ISSUE_TEMPLATE/feature_request.md | 17 ---------- .github/ISSUE_TEMPLATE/feature_request.yml | 24 +++++++++++++ bot/__main__.py | 6 ++-- 6 files changed, 74 insertions(+), 46 deletions(-) delete mode 100644 .github/ISSUE_TEMPLATE/bug_report.md create mode 100644 .github/ISSUE_TEMPLATE/bug_report.yml create mode 100644 .github/ISSUE_TEMPLATE/config.yml delete mode 100644 .github/ISSUE_TEMPLATE/feature_request.md create mode 100644 .github/ISSUE_TEMPLATE/feature_request.yml diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md deleted file mode 100644 index 559c806..0000000 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -name: Bug Report -about: Create a bug report to help us improve -title: '' -labels: '' -assignees: '' - ---- - -**Describe the Bug** -A clear and concise description about the bug. - -**Expected behaviour** -Tell us what you had expected to happen. - -**Screenshots** -If applicable, add screenshots to explain your problem. - -**Add Logs** -Add logs of your bot (hiding credentials) so that we can help you quickly. - -**Additional info** -Any other details about the issue. - -**NOTE:** -We don't provide support for modified code/repo of slam-mirrorbot, so don't report errors/bug arising from your modified code. Fix it yourself. diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml new file mode 100644 index 0000000..023565f --- /dev/null +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -0,0 +1,39 @@ +name: Bug Report +description: Create a bug report to help us improve +body: + - type: textarea + id: describe-the-bug + attributes: + label: Describe the Bug + description: A clear and concise description about the bug. **NOTE:** We don't provide support for modified code/repo of slam-mirrorbot, so don't report errors/bug arising from your modified code. Fix it yourself. + value: "A bug happened!" + validations: + required: true + - type: textarea + id: expected-behaviour + attributes: + label: Expected behaviour + description: Tell us what you had expected to happen. + validations: + required: false + - type: textarea + id: screenshots + attributes: + label: Screenshots + description: If applicable, add screenshots to explain your problem. + validations: + required: false + - type: textarea + id: add-logs + attributes: + label: Add Logs + description: Add logs of your bot (hiding credentials) so that we can help you quickly. + validations: + required: true + - type: textarea + id: additional-info + attributes: + label: Additional info + description: Any other details about the issue. + validations: + required: true diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml new file mode 100644 index 0000000..4dac767 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -0,0 +1,8 @@ +blank_issues_enabled: false +contact_links: + - name: Slam Mirrorbot Channels + url: https://t.me/SlamMirrorUpdates + about: Updates Channels + - name: Slam Mirrorbot Group + url: https://t.me/SlamSupport + about: Support Group diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md deleted file mode 100644 index df81be2..0000000 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: '' -labels: '' -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Additional context** -Add any other context or screenshots about the feature request here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.yml b/.github/ISSUE_TEMPLATE/feature_request.yml new file mode 100644 index 0000000..3541cc7 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/feature_request.yml @@ -0,0 +1,24 @@ +name: Feature request +description: Suggest an idea for this project +body: + - type: textarea + id: is-your-feature-request-related-to-a-problem-please-describe + attributes: + label: Is your feature request related to a problem? Please describe. + description: A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + validations: + required: true + - type: textarea + id: describe-the-solution-youd-like + attributes: + label: Describe the solution you'd like + description: A clear and concise description of what you want to happen. + validations: + required: true + - type: textarea + id: additional-context + attributes: + label: Additional context + description: Add any other context or screenshots about the feature request here. + validations: + required: false diff --git a/bot/__main__.py b/bot/__main__.py index 0ea1f1e..a9e5564 100644 --- a/bot/__main__.py +++ b/bot/__main__.py @@ -6,7 +6,7 @@ import asyncio from pyrogram import idle from sys import executable -from telegram import ParseMode, InlineKeyboardMarkup +from telegram import ParseMode from telegram.ext import CommandHandler from telegraph import Telegraph from wserver import start_server_async @@ -98,7 +98,7 @@ def bot_help(update, context):

/{BotCommands.UnzipMirrorCommand} [download_url][magnet_link]: Starts mirroring and if downloaded file is any archive, extracts it to Google Drive

-/{BotCommands.QbMirrorCommand} [magnet_link]: Start Mirroring using qBittorrent, Use /{BotCommands.QbMirrorCommand} s to select files before downloading +/{BotCommands.QbMirrorCommand} [magnet_link]: Start Mirroring using qBittorrent, Use /{BotCommands.QbMirrorCommand} s to select files before downloading

/{BotCommands.QbTarMirrorCommand} [magnet_link]: Start mirroring using qBittorrent and upload the archived (.tar) version of the download

@@ -112,7 +112,7 @@ def bot_help(update, context):

/{BotCommands.DeleteCommand} [drive_url]: Delete file from Google Drive (Only Owner & Sudo)

-/{BotCommands.WatchCommand} [youtube-dl supported link]: Mirror through youtube-dl. Click /{BotCommands.WatchCommand} for more help +/{BotCommands.WatchCommand} [youtube-dl supported link]: Mirror through youtube-dl. Click /{BotCommands.WatchCommand} for more help

/{BotCommands.TarWatchCommand} [youtube-dl supported link]: Mirror through youtube-dl and tar before uploading