You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} `CLIPTOK_GITHUB_TOKEN` was not set, so GitHub API commands cannot be used.");
73
76
return;
74
77
}
75
-
76
78
if(!fileName.EndsWith(".txt"))
77
79
fileName+=".txt";
78
80
81
+
79
82
if(content.Length<3)
80
83
{
81
-
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Your input is too short, please reconsider.");
84
+
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} Your input is too short, please don't add this to the list.");
82
85
return;
83
86
}
84
87
@@ -88,28 +91,43 @@ public async Task ListAdd(
88
91
content=content.Replace("```","").Trim();
89
92
90
93
string[]lines=content.Split(
91
-
newstring[]{"\r\n","\r","\n"},
94
+
["\r\n","\r","\n"],
92
95
StringSplitOptions.None
93
96
);
94
97
95
98
if(lines.Any(line =>line.Length<4))
96
99
{
97
-
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} One of your lines is shorter than 4 characters.\nFor safety reasons I can't accept this input over command. Please submit a PR manually.");
100
+
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} One of your lines is shorter than 4 characters.\nTo prevent accidents I can't accept this input over command. Please submit a PR manually.");
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Success} The request was successful.\n"+
134
-
$"You should see the result in <#{Program.cfgjson.HomeChannel}> soon or can check at <https://github.com/{Program.cfgjson.GitHubWorkFlow.Repo}/actions>");
152
+
$"You should see the result in <#{Program.cfgjson.HomeChannel}> soon or can check at <https://github.com/{repoName}/actions>");
135
153
else
136
154
awaitctx.RespondAsync($"{Program.cfgjson.Emoji.Error} An error with code `{response.StatusCode}` was returned when trying to request the Action run.\n"+
0 commit comments