Skip to content

Commit e45a5a2

Browse files
committed
Upgrade from issue template to issue form
1 parent a8a48b1 commit e45a5a2

File tree

3 files changed

+120
-59
lines changed

3 files changed

+120
-59
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 0 additions & 58 deletions
This file was deleted.
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
name: Bug Report
2+
description: Report an issue in the bot
3+
labels: ["bug"]
4+
body:
5+
- type: checkboxes
6+
attributes:
7+
label: Is there an existing issue for this?
8+
description: Please search to see if an issue already exists for the bug you encountered.
9+
options:
10+
- label: I have searched the existing issues
11+
required: true
12+
- type: checkboxes
13+
attributes:
14+
label: Are you running the latest bot version?
15+
description: Please double-check that you're running the latest release.
16+
options:
17+
- label: I have confirmed i'm running the latest bot version
18+
required: true
19+
- type: checkboxes
20+
attributes:
21+
label: Have you tried to remove all plugins and see if the issue persists?
22+
description: Often times the bugs are not in the bot, but the result of a misbehaving plugin
23+
options:
24+
- label: I have reproduced the issue even after removing all non-required plugins
25+
required: true
26+
- type: checkboxes
27+
attributes:
28+
label: Can anyone else reproduce the issue?
29+
description: |
30+
If you're the only one having this issue, it's unlikely we'll be able to fix it.
31+
Try to reach out on support channels over on discord to see if it's not just you.
32+
options:
33+
- label: I have confirmed with someone else that they can reproduce the issue too.
34+
required: true
35+
- type: textarea
36+
attributes:
37+
label: Describe the bug
38+
description: A concise description of what you're experiencing.
39+
validations:
40+
required: true
41+
- type: textarea
42+
attributes:
43+
label: Expected Behavior
44+
description: A concise description of what you expected to happen.
45+
validations:
46+
required: false
47+
- type: textarea
48+
attributes:
49+
label: Steps To Reproduce
50+
description: Steps to reproduce the behavior.
51+
placeholder: |
52+
1. In this environment...
53+
2. With this config...
54+
3. Run '...'
55+
4. See error...
56+
validations:
57+
required: true
58+
- type: textarea
59+
attributes:
60+
label: Screenshots, Video, or other media
61+
description: |
62+
Include any screenshots or videos that may help explain the issue.
63+
Note: Often videos are EXTREMELY helpful in understanding the issue, include them!
64+
Tip: You can attach images or videos by clicking this area to highlight it and then dragging files in.
65+
placeholder: Attach any relevant videos or screenshots of the bug happening
66+
validations:
67+
required: true
68+
- type: textarea
69+
attributes:
70+
label: Logs
71+
description: |
72+
Include your bot logs, they can be found in the logs folder.
73+
Tip: You can attach logs by clicking this area to highlight it and then dragging files in.
74+
placeholder: Attach the latest .log file
75+
validations:
76+
required: true
77+
- type: input
78+
attributes:
79+
label: Bot Version
80+
description: This is displayed at the top of the bot GUI
81+
validations:
82+
required: true
83+
- type: input
84+
attributes:
85+
label: Installed Plugins & versions
86+
description: |
87+
List all the plugins you're using and their versions
88+
Note: Try to remove all non-required plugins to confirm the bug persists first!!
89+
placeholder: |
90+
Default Plugin v2.0.1
91+
Donor Plugin v2.0.3 b1
92+
etc
93+
validations:
94+
required: true
95+
- type: input
96+
attributes:
97+
label: Browser API & version
98+
description: |
99+
What browser api is the bot using?
100+
Note: can be found in the diagnostics menu in the top-right corner of the bot GUI.
101+
placeholder: e.g. KekkaPlayer v21
102+
validations:
103+
required: false
104+
- type: input
105+
attributes:
106+
label: Operating System
107+
description: What operating system & version did the bug occur on?
108+
placeholder: e.g. Win7, Win10 1909, Win10 22.H1, Win11 22H2, Ubuntu 22.04...
109+
validations:
110+
required: false
111+
- type: textarea
112+
attributes:
113+
label: Anything else?
114+
description: |
115+
Links? References? Anything that will give us more context about the issue you are encountering!
116+
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
117+
validations:
118+
required: false

src/main/java/com/github/manolo8/darkbot/Bot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import com.formdev.flatlaf.FlatDarkLaf;
44
import com.formdev.flatlaf.ui.FlatNativeWindowBorder;
55
import com.formdev.flatlaf.util.SystemInfo;
6+
import com.github.manolo8.darkbot.extensions.plugins.PluginClassLoader;
67
import com.github.manolo8.darkbot.utils.LibSetup;
78
import com.github.manolo8.darkbot.utils.LogUtils;
89
import com.github.manolo8.darkbot.utils.StartupParams;
@@ -74,7 +75,7 @@ private static void setupSecurityPolicy() {
7475
@Override
7576
public PermissionCollection getPermissions(ProtectionDomain domain) {
7677
// Externally loaded classes get no permissions
77-
if (domain.getClassLoader() instanceof URLClassLoader) return new Permissions();
78+
if (domain.getClassLoader() instanceof PluginClassLoader) return new Permissions();
7879

7980
// Stuff from other loaders gets permissions
8081
Permissions permissions = new Permissions();

0 commit comments

Comments
 (0)