Skip to content

Commit

Permalink
Add erowid and some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
LunaUrsa committed Jan 22, 2024
1 parent db4da8e commit 3219af0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 18 deletions.
36 changes: 19 additions & 17 deletions src/discord/commands/global/d.combo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,25 +86,27 @@ export const dCombo: SlashCommand = {
sourceString = `\n\nSources: ${sourceArray.join(', ')}`;
}

const linkString = stripIndents`
Check the following resources for more information:
**${drugA}**
* [TripSit Wiki - ${drugA}](https://wiki.tripsit.me/wiki/${drugA})
* [TripSit Factsheets - ${drugA}](https://drugs.tripsit.me/${drugA})
* [PsychonautWiki - ${drugA}](https://psychonautwiki.org/wiki/${drugA})
**${drugB}**
* [TripSit Wiki - ${drugB}](https://wiki.tripsit.me/wiki/${drugB})
* [TripSit Factsheets - ${drugB}](https://drugs.tripsit.me/${drugB})
* [PsychonautWiki - ${drugB}](https://psychonautwiki.org/wiki/${drugB})`;

const embed = embedTemplate()
.setTitle(`Mixing ${drugA} and ${drugB}: ${resultsData.emoji} ${resultsData.result} ${resultsData.emoji}`)
.setDescription(`${resultsData.definition}${noteString}${sourceString}
${linkString}`);
.setDescription(`${resultsData.definition}${noteString}${sourceString}`)
.setFields([
{
name: `${drugA}`,
value: stripIndents`* [TripSit Wiki](https://wiki.tripsit.me/wiki/${drugA})
* [TripSit Factsheets](https://drugs.tripsit.me/${drugA})
* [PsychonautWiki](https://psychonautwiki.org/wiki/${drugA})
* [Erowid Experiences](https://www.erowid.org/experiences/subs/exp_${drugA}.shtml)`,
inline: true,
},
{
name: `${drugB}`,
value: stripIndents`* [TripSit Wiki](https://wiki.tripsit.me/wiki/${drugB})
* [TripSit Factsheets](https://drugs.tripsit.me/${drugB})
* [PsychonautWiki](https://psychonautwiki.org/wiki/${drugB})
* [Erowid Experiences](https://www.erowid.org/experiences/subs/exp_${drugB}.shtml)`,
inline: true,
},
]);
if (resultsData.thumbnail) embed.setThumbnail(resultsData.thumbnail);
if (resultsData.color) embed.setColor(Colors[resultsData.color as keyof typeof Colors]);
await interaction.editReply({ embeds: [embed] });
Expand Down
3 changes: 2 additions & 1 deletion src/global/commands/g.combo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,12 +147,13 @@ export async function combo(
* https://wiki.tripsit.me/wiki/${drugAInput}
* https://drugs.tripsit.me/${drugAInput}
* https://psychonautwiki.org/wiki/${drugAInput}
* https://www.erowid.org/experiences/subs/exp_${drugAInput}.shtml
${drugBInput}
* https://wiki.tripsit.me/wiki/${drugBInput}
* https://drugs.tripsit.me/${drugBInput}
* https://psychonautwiki.org/wiki/${drugBInput}
`,
* https://www.erowid.org/experiences/subs/exp_${drugBInput}.shtml`,
};
}

Expand Down

0 comments on commit 3219af0

Please sign in to comment.