kreicer / dice-roller-bot

Discord bot for rolling dice.
GNU General Public License v3.0
17 stars 4 forks source link

Add webhook management #17

Open Mobtv1 opened 6 months ago

Mobtv1 commented 6 months ago

Hi,

I would like to output a commande inside discord channel, using a StreamDeck to ask Discord to Roll a D20 or else.

I'v try to implemant this commande using "Discord tools" that is using webhook to communicate with, but the output is writing raw in the texte.

I ask your kind attention to it, if you can guide me trought this :)

Thank you !

There is a link that we think it should be helping to : https://discord.com/developers/docs/interactions/receiving-and-responding

kreicer commented 6 months ago

Hello, can you provide more info about raw output? Like screenshots or text (clear sensitive data if it contained).

Mobtv1 commented 6 months ago

Capture1

Capture 2

kreicer commented 6 months ago

And link on Discord Tools pls

Mobtv1 commented 6 months ago

https://marketplace.elgato.com/product/discord-messenger-4614db7f-6f4f-4e18-9847-3301d94a7af6

kreicer commented 6 months ago

So, MJ bot can roll dice and you want to make him a d20 roll via webhook? Just to shure Im understand it right.

Mobtv1 commented 6 months ago

yes, exactly that.

Am capable to output raw text trought webhook in discord, but this raw text is not interprated.

kreicer commented 6 months ago

Raw text will only work with prefix command, I guess. Does MJ bot support prefix commands? If so, just try change / for prefix. Every bot will ignore raw text cos discord have special mechanics for slash commands. But if bot can read text in channels and react on it - bot should answer.

Mobtv1 commented 6 months ago

Prefix command are not working.