Skip to content

Commit

Permalink
Update examples to indicate that intake is mandatory
Browse files Browse the repository at this point in the history
  • Loading branch information
gabber235 committed Oct 19, 2024
1 parent c7083b9 commit 1e4924f
Show file tree
Hide file tree
Showing 7 changed files with 94 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
Can we add Actionbar-based dialogue and selection functions? Due to the limited space of Chat, in some cases, the option function occupies part of the space, so it is difficult to fully display the content expressed.
</user>
<assistant>
To help you with this, we need to understand the problem you are facing.
To get a support person to help you better, please provide the following information:
- **Could you describe the problem clearly?** Maybe make a drawing or annotate a screenshot? Specify what is in this screenshot and what you want to achieve.
- **How would other users usse this feature?** What are the use cases for this feature?
- **What would be the advantages of this feature?** Why should this feature be added? How would it enhance the user experience?

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
Currently, things like option dialogue can only be displayed in the chat. But I want to display it in the action bar.
Expand Down
4 changes: 3 additions & 1 deletion discord_bot/ai/intake_examples/bug_with_velocity.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,12 @@ io.netty.handler.codec.EncoderException: Failed to encode packet 'clientbound/mi
```
</user>
<assistant>
Sorry to hear you are having issues with Typerwriter.
Sorry to hear you are having issues with Typerwriter! Please provide the following information:
- **Upload logs** Go to your `logs` folder and upload the `latest.log` to [McLogs](https://mclo.gs/) and give us the generated URL.
- **Expected behavior**: What did you expect to happen? And what actually happened?
- **Reproduction steps**: Provide clear instructions on how to reproduce the issue.

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
Logs:
Expand Down
29 changes: 29 additions & 0 deletions discord_bot/ai/intake_examples/error_in_path_calculation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
<user>
# Error in path calculation
</user>
<user>
Does anyone know why this error may be occurring?
</user>
<assistant>
To allow a support person to help you more effectively, please provide the following information:

- **What were you trying to do when the error occurred?** Outline the steps you took leading up to the error.
- **Have you checked the logs?** If so, could you upload the `latest.log` from your `logs` folder to [McLogs](https://mclo.gs) and share the link?

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
I was trying to use the PathStreamEntry to show a path to the players.
Then I got the error in the file.
</user>
<assistant>
Please provide the full logs from your `logs` folder. We gather a lot of information about the context of your server from the logs.
Please upload the `latest.log` to [McLogs](https://mclo.gs) and share the link.
</assistant>
<user>
Logs:
https://mclo.gs/y4NrASr
</user>
<tool_call>
complete_intake({"provided_inquiry": true})
</tool_call>
2 changes: 2 additions & 0 deletions discord_bot/ai/intake_examples/plugin_not_working.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ Let's work together to resolve this issue.

- **Extensions correctly installed?** Did you install the extensions correctly? It should show in the console logs that the extensions where correctly loaded.
- **Can you view the web panel?** Are you able to connect to the web panel and create a page?

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
Ow sorry I didn't install any extensions. Let me try that out.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,11 @@
All the line breaks don't work, but I can't find any new line breaks in the wiki. My NPC name needs a line feed
</user>
<assistant>
Lets try to figure out a solution together.
To make support staff help you faster, provide the following information:
- **What exactly are you trying to achieve?** Why do you need the line breaks for the NPC name?
- **What have you already tried?** Have you looked through any documentation or tried using different entries?

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
I want to have a template below the npc by default. Like "black smith" or "captain".
Expand Down
23 changes: 23 additions & 0 deletions discord_bot/ai/intake_examples/why_is_my_staging_all_gone.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<user>
# Why is my staging all gone
</user>
<user>
https://mclo.gs/RUCqfuO It's normal to write opt, and when I hit publish, that's it
</user>
<assistant>
To help support staff better understand the issue, please provide the following information:

- **What were you trying to achieve?** Please describe what you were working on before the staging disappeared.
- **What changes were made prior to this issue?** Did you update the plugin, change configurations, or remove any files?
- **What is the expected outcome, and what happened instead?** What did you expect to see, and what did you actually find?

Providing the above information is **mandatory** for the ticket to be answered and look by the support team.
</assistant>
<user>
I was just restarting the server, before the restart, everything was fine.
But after the restart, the staging disappeared.
And the error in the logs occurred.
</user>
<tool_call>
complete_intake({"provided_inquiry": true})
</tool_call>
31 changes: 31 additions & 0 deletions discord_bot/src/discord/thread_cleanup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,37 @@ async fn resolve_intake_thread(
let now = Timestamp::now();
let duration = now.timestamp() - last_message_date.timestamp();

// If the duration is between 12 and 13 hours, we want to send the owner a reminder in dms.
if duration > Duration::hours(12).num_seconds() && duration < Duration::hours(13).num_seconds()
{
let owner_id = thread.owner_id.ok_or(WinstonError::NotAThreadChannel)?;

let dms = owner_id.create_dm_channel(&discord).await?;

if let Err(e) = dms
.send_message(
discord,
CreateMessage::default()
.content(format!("{}", owner_id.mention()))
.embed(
CreateEmbed::default()
.title("Intake Reminder")
.color(0xFF0000)
.description(formatdoc! {"
You currently have an intake open for {} that is overdue.
Please complete the intake as soon as possible.
**Completing the intake is mandatory for the ticket to be answered and look by the support team.**
", thread.mention()})
)
,

)
.await {
eprintln!("Failed to send message: {}", e);
}
}

if duration < Duration::days(1).num_seconds() {
return Ok(());
}
Expand Down

0 comments on commit 1e4924f

Please sign in to comment.