Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ for convenience's sake:
| `!step` | The URL to the official step-by-step tutorial. |
| `!tut` | The URL to the list of tutorials in the documentation. |
| `!code` | Brief instructions for embedding code snippets in Discord. |
| `!xy` | Ask for the REAL problem, and explain what XY-problems are. |

## Installation

Expand Down
7 changes: 7 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
!consoles: *Documentation about porting a Godot project to consoles.*
!ask: *Response to be used when users are asking if they can ask a question, which is redundant.*
!code: *Instructions for formatting GDScript code on Discord.*
!xy: *Ask for the REAL problem, and explain what XY-problems are.*

Bot source code: <https://github.com/Calinou/datcord_bot>"""

Expand Down Expand Up @@ -653,6 +654,12 @@ async def on_message(message: Any) -> None:
For sharing large scripts, please post your script to a pastebin like https://hastebin.com or even consider sharing a remote Git repository on GitHub or GitLab."""
)

elif message.content.lower().startswith("!xy"):
await message.channel.send(
"""It sounds like you're asking an *XY Problem*. Please explain what your **actual goal** is, as there may be more elegant ways to achieve it.
> The XY problem is a communication problem encountered in help desk and similar situations in which the person asking for help obscures the real issue, X, because instead of asking directly about issue X, they ask how to solve a secondary issue, Y, which they believe will allow them to resolve issue X. However, resolving issue Y often does not resolve issue X, or is a poor way to resolve it, and the obscuring of the real issue and the introduction of the potentially strange secondary issue can lead to the person trying to help having unnecessary difficulties in communication and/or offering poor solutions.
https://en.m.wikipedia.org/wiki/XY_problem"""
)

# Prepare for takeoff.
populate_memes()
Expand Down