Spaces:
Running
Running
Tobkubos commited on
Commit 路
d95e4bb
1
Parent(s): 301091e
index.js
CHANGED
|
@@ -318,6 +318,7 @@ async function handleFactCheck(interaction, statement) {
|
|
| 318 |
.setFooter({ text: "System Fact-checkingowy", iconURL: client.user.displayAvatarURL() });
|
| 319 |
|
| 320 |
// Formatowanie 藕r贸de艂
|
|
|
|
| 321 |
if (data.sources && data.sources.length > 0) {
|
| 322 |
const sourcesText = data.sources
|
| 323 |
.map((src, idx) => `**[${idx + 1}]** [${src.title}](${src.url})\n*${src.snippet.slice(0, 150)}...*`)
|
|
@@ -330,7 +331,7 @@ async function handleFactCheck(interaction, statement) {
|
|
| 330 |
} else {
|
| 331 |
embed.addFields({ name: "馃敆 Wykorzystane 藕r贸d艂a internetowe", value: "Brak bezpo艣rednich 藕r贸de艂." });
|
| 332 |
}
|
| 333 |
-
|
| 334 |
await interaction.editReply({
|
| 335 |
embeds: [embed]
|
| 336 |
});
|
|
|
|
| 318 |
.setFooter({ text: "System Fact-checkingowy", iconURL: client.user.displayAvatarURL() });
|
| 319 |
|
| 320 |
// Formatowanie 藕r贸de艂
|
| 321 |
+
/*
|
| 322 |
if (data.sources && data.sources.length > 0) {
|
| 323 |
const sourcesText = data.sources
|
| 324 |
.map((src, idx) => `**[${idx + 1}]** [${src.title}](${src.url})\n*${src.snippet.slice(0, 150)}...*`)
|
|
|
|
| 331 |
} else {
|
| 332 |
embed.addFields({ name: "馃敆 Wykorzystane 藕r贸d艂a internetowe", value: "Brak bezpo艣rednich 藕r贸de艂." });
|
| 333 |
}
|
| 334 |
+
*/
|
| 335 |
await interaction.editReply({
|
| 336 |
embeds: [embed]
|
| 337 |
});
|