Davnit / StealthBotScripts

Scripts for StealthBot
3 stars 0 forks source link

DISCORD WEBHOOK HELP SETUP #4

Closed pglandrew closed 5 years ago

pglandrew commented 5 years ago

Hello i'm trying to setup this => https://github.com/Davnit/StealthBotScripts/blob/master/DiscordHook.txt

but i dont have any ideea what i do wrong sinces no info how to setup it

please help!

i added the webhook and channel but seams is not working

Davnit commented 5 years ago

I've added more detailed setup instructions to the wiki page for this script.

pglandrew commented 5 years ago

@Davnit

i added this on scripts.ini

[DiscordHook] Hook=[REDACTED] ShowJoins: true Channel: If set, only events from the specified channel will be sent.

and not working

what i do wrong?

and yes is a specific channel already set in webhook called euro-games but is not working :(

help please

Davnit commented 5 years ago

For ShowJoins, the T in true needed to be capitalized. For Channel, the value should be the name of the Battle.net channel you want messages sent FROM. If you want messages sent from wherever your bot happens to be then just don't include that line.

pglandrew commented 5 years ago

i just want he to announce games in my discord server in channel euro-games @Discord server in the webook already i select that and i add the lines in scripts.ini but not working

and wich value shold be battle.net ? can you give a full example and just edit it ? please

and what means "capitalized" about this: For ShowJoins, the T in true needed to be capitalized.?

pglandrew commented 5 years ago

[DiscordHook] Hook=[REDACTED] ShowJoins: true Channel: OP D2Services (this is channel on diablo 2 game)

euro-games is the channel on discord where i want to announce games

pglandrew commented 5 years ago

i got also this error

"[16:37:47] Scripting runtime error #-2147221020 in DiscordHook: (line 63; column 0) [16:37:47] Invalid syntax

[16:37:47] Scripting runtime error #-2147221020 in DiscordHook: (line 63; column 0) [16:37:47] Invalid syntax "

Davnit commented 5 years ago

I don't know about the error unless you've somehow modified the script. Try re-downloading it (right click on the 'Raw' button and use the save as option).

Make sure there is only one line that says [DiscordHook] in your scripts.ini file, and everything should go directly below that (before any other line with brackets). You also need to use = instead of :.

[DiscordHook]
Hook=your hook URL
ShowJoins=True
Channel=OP D2Services
pglandrew commented 5 years ago

i dont modifiy nothing is default from github

where i add this? => http://prntscr.com/pq875f

the webhook? or is only need to create on discord ?

Davnit commented 5 years ago

The name in your screenshot is just what you want it to show up as on Discord. The only thing you need from that screen is the webhook URL.

pglandrew commented 5 years ago

yeah i fixed :) ty for reply cheers!